Boost logo

Boost :

Subject: Re: [boost] is_base_of: bug in trunk, not in sandbox
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-10 11:00:33


AMDG

On 03/10/2011 04:54 AM, Frédéric Bron wrote:
> Thanks to Christopher Jefferson, I discovered a bug in the trunk (in
> fact in 1.46.0) for is_base_of in the type_traits library.
>
> is_base_of<int, int>::value should be true according to the doc:
> "is_base_of<Base, Base>::value is an integral constant expression that
> evaluates to true: a class is regarded as it's own base.

int is not a class.

In Christ,
Steven Watanabe


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