Presuming that your C++ compiler supports them, is there any particular reason not to use
__FUNCTION__ for logging and debugging purposes?
I'm primarily concerned with giving the user misleading data—for example, reporting the incorrect line number or function as a result of optimization—or taking a performance hit as a result.
Basically, can I trust
__FUNCTION__ to always do the right thing?