Simon Josefsson wrote:
> If there are other pre-C99 compilers that use other ways of printing the
> function name, I suppose the module could be extended with those.
According to boost/current_function.hpp, it appears that
- GNU C is not the only compiler to support __PRETTY_FUNCTION__;
Metrowerks and Intel icc may do the same.
- Some Intel compilers and some IBM compilers may support __FUNCTION__.
But this info may be out of date. Here's what I verified:
- Intel icc version 9.1 supports __func__, __FUNCTION__, __PRETTY_FUNCTION__,
like GNU C does. And it does not define __STDC_VERSION__.
- HP-UX 11 cc supports __func__, __FUNCTION__. And it does not define
__STDC_VERSION__ either.
Bruno