Boost logo

Boost :

Subject: Re: [boost] BOOST_CURRENT_FUNCTION on Sun C++
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-09-05 17:48:07

Simon Atanasyan:
> On Thu, Sep 4, 2008 at 10:03 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
>> Emil Dotchevski:
>>> It appears that BOOST_CURRENT_FUNCTION returns '(unknown)' on sun-5.7,
>>> sun-5.8 and sun-5.9, ...
>>> Is this a bug, or is BOOST_CURRENT_FUNCTION not possible on that
>>> compiler?
>> Google tells me that __func__ might work on some Sun C++ versions, but I
>> don't have access to the compiler and can't check. :-)
> Sun C++ supports __func__ under -features=extensions command line option.

Is there a way to detect that -features=extensions is in effect and __func__
is supported? Does -features=extensions define a corresponding macro, or if
it doesn't, is __func__ itself detectable via #ifdef __func__?

Boost list run by bdawes at, gregod at, cpdaniel at, john at