Boost logo

Boost :

Subject: Re: [boost] [introspection] if a function is not public
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2011-07-05 15:55:11


On 05/07/11 19:59, Mathias Gaunard wrote:
> On 06/30/2011 11:24 PM, John Bytheway wrote:
>> On 30/06/11 01:02, Lorenzo Caminiti wrote:
>>> Hello all,
>>>
>>> Is there any way (SFINAE, etc) to check at run-time or at compile-time
>>> if a member function is not public?
>>
>> In C++0x the SFINAE rules have changed slightly so that inaccessible
>> members are effectively the same as absent ones, so you could probably
>> do something, but I don't think you have any recourse in C++03.
>
> Do compilers already follow this?

clang r132536 (3.0) does. g++ 4.5.2 doesn't.

John


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