Boost logo

Boost :

From: John Maddock (jm_at_[hidden])
Date: 2003-02-05 07:13:02


> I noticed that is_class actually detects classes only for the Metrowerks
> and the VC++, other compilers use a fall-back implementation which works
> by detecting everything but classes and thus everything which remains has
> to be a class. This is IMHO broken as i.e. member functions are detected
> as classes.

They shouldn't be, and aren't for other compilers, and in fact the member
function pointers that are tested in the test suite don't get mis-assigned
as class types, even with gcc. I accept that there is a problem with gcc
though because <T U::*> partial specialisations don't pick up member
function pointers as it should, so we ended up with a long list :-(

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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