I can use __LINE__ as a method parameter just fine, but I would like an easy way to use it in a function that uses strings.
__LINE__
For instance say I have this:
The usual options for formatting a number into a string apply: Boost lexical_cast, ostringstream, sprintf or snprintf, etc.
Here is one of my favorite links on the topic: http://www.gotw.ca/publications/mill19.htm