Is there an easy way to build a string which includes the _FILE_
and _LINE_
values?
I could do something like:
std::stringstream ss;
ss << "Error in "<<_FILE_<<":"<<_LINE_<<" - too many bees!";
log(ss.str());
But that is a PITA, compared to the ideal which might be:
log("Error in "+_FILE_+":"+_LINE_+" - too many bees!");
Is there a neat way to do this in C++/STL/boost? Note I am limited to older compiler, no C++11!