Boost logo

Boost :

Subject: Re: [boost] BOOST_CURRENT_FUNCTION
From: Simon Atanasyan (atanasyan_at_[hidden])
Date: 2008-09-05 15:16:48


On Thu, Sep 4, 2008 at 9:08 PM, Emil Dotchevski <emil_at_[hidden]> wrote:
> On Thu, Sep 4, 2008 at 1:24 AM, John Maddock <john_at_[hidden]> wrote:
>> Emil Dotchevski wrote:
>>>>
>>>> It appears that BOOST_CURRENT_FUNCTION returns '(unknown)' on
>>>> sun-5.7, sun-5.8 and sun-5.9, I'm looking at
>>>>
>>>> http://www.boost.org/development/tests/trunk/developer/output/Sandia-sun-boost-bin-v2-libs-exception-test-diagnostic_information_test-test-sun-5-7-debug.html.
>>>>
>>>> Is this a bug, or is BOOST_CURRENT_FUNCTION not possible on that
>>>> compiler?
>>
>> Not possible I suspect: it relies on the compiler supporting the
>> non-standard __function__ symbol.
>
> Well, current_function.hpp has support for many compilers, using
> whatever implementation-specific symbol is available. I can see that
> it doesn't specifically address the Sun compiler.
>
> Could someone with access to that compiler take a look?

Sun C++ supports __func__ under -features=extensions command line option.

-- 
Simon Atanasyan

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk