
5 Jul
2011
5 Jul
'11
7:55 p.m.
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