
16 Mar
2011
16 Mar
'11
5:43 p.m.
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.
On 03/10/2011 04:54 AM, Frédéric Bron wrote: int is not a class.
Has this changed in 1.46.0, or are the docs wrong?
It changed prior to 1.46 (not sure which version off hand), so yes the docs are out of date. John.