Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-12-12 11:14:51


Pavel Kalugin wrote:
> documentation for is_base_of says:
> "... Note that is_base_of<X,X> will always inherit from true_type..."
>
> and few lines after:
> "is_base_of<Base, Base>::value is an integral constant expression that
> evaluates to false: a class is not it's own base.",

Yep the example is wrong, fixed in cvs.

Thanks for spotting that, John.


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