Boost logo

Boost :

Subject: Re: [boost] [offtopic] Wonders of C++ syntax
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-03-05 14:59:50


On Wednesday 05 March 2014 21:49:44 Borislav Stanimirov wrote:
> On 5.3.2014 г. 21:31 ч., Andrey Semashev wrote:
> > MSVC was more creative:
> > __cdecl namespc::my_class2::operator char (__cdecl
> >
> > *)(double)(__cdecl *(void) const)(double)
>
> It seems that BOOST_CURRENT_FUNCTION expands to __FUNCSIG__ in msvc, as
> the simple __FUNCTION__ produces a far simpler output (similar to the
> one in gcc.
>
> Why don't you try using __FUNCTION__ when _MSC_VER is defined?

Yeah, I might resort to that since that's mostly what I need in Boost.Log. The
point for __FUNCSIG__ is that in other cases it is more consistent with other
compilers, so if someone wants to see the complete signature (which is the
current behavior) he gets it with MSVC too.


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