Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-11-26 08:56:15


At 08:01 AM 11/26/2001, John Maddock wrote:

>>I like Vesa's approach:
>
> is< D >::derived_from< B >::value
> is< B >::base_of< D >::value
>
>Is it possible to make this work on most compilers?
><
>
>Probably, however there are some people you use type traits as compile
time
>predicates (see http://www.oonumerics.org/tmpw01/winch.pdf).
>
>I also worry about a class with a name "is" being in namespace boost - it
>looks like it's too likely to clash with something to me?

Worse yet, what happens if and when it goes in the standard?

"is_class" would be a bit less likely to clash.

--Beman


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