g++ has a predefined macro __PRETTY_FUNCTION. I think it is a gcc
extension. Is there anything equivalent that is defined in the
standard or any library ( e.g. BOOST, ACE )?
Don't take this for granted, but I've read somewhere, that there will be
something in the standard which is named __func__ which gives the
function name, but not in that detail like __PRETTY_FUNCTION__. I don't
know how many compiler already implement this, but it is much more
portable than __PRETTY_FUNCTION__. But if you use g++, you can try, g++
implements both.
hth,
Michael