Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2001-03-17 13:33:23


Just browsing composite_traits.hpp and is_enum. My compiler (Metrowerks)
doesn't support is_convertible (at least I don't think it will, haven't
actually tried). But I was wondering if the following class might
mistakenly be classified as an enum?

struct NotAnEnum
{
     operator int() const {return 0;}
};

-Howard


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