In C++, can I have a defaulted argument to a function which defaults to __PRETTY_FUNCTION___, ___FILE___, and ___LINE__ as defined at the point of the caller and not the point the defaults are supplied in a header file without using macros?
In C++, can I have a defaulted argument to a function which defaults to
Share
You can’t, but you can acheive this behavior with an additional macro. For instance:
On a side note,
__PRETTY_FUNCTION__is not standard.