[type_traits][docs] example for is_base_of<> needs to be updated

10 Dec
2006
10 Dec
'06
7:01 p.m.
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.", http://boost.org/doc/html/boost_typetraits/reference.html#boost_typetraits.i... -- Pavel Kalugin

12 Dec
12 Dec
4:14 p.m.
New subject: [type_traits][docs] example for is_base_of<> needs to beupdated
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.
6761
Age (days ago)
6763
Last active (days ago)
1 comments
2 participants
participants (2)
-
John Maddock
-
Pavel Kalugin