|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84762 - in branches/release/libs/type_traits/doc: . html/boost_typetraits/reference html/index
From: john_at_[hidden]
Date: 2013-06-13 12:09:12
Author: johnmaddock
Date: 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013)
New Revision: 84762
URL: http://svn.boost.org/trac/boost/changeset/84762
Log:
Clarify that base classes include indirect ancestors.
Fixes #8407.
Text files modified:
branches/release/libs/type_traits/doc/html/boost_typetraits/reference/is_base_of.html | 3 +++
branches/release/libs/type_traits/doc/html/index/s11.html | 2 +-
branches/release/libs/type_traits/doc/html/index/s12.html | 2 +-
branches/release/libs/type_traits/doc/html/index/s13.html | 2 +-
branches/release/libs/type_traits/doc/html/index/s14.html | 2 +-
branches/release/libs/type_traits/doc/is_base_of.qbk | 3 +++
6 files changed, 10 insertions(+), 4 deletions(-)
Modified: branches/release/libs/type_traits/doc/html/boost_typetraits/reference/is_base_of.html
==============================================================================
--- branches/release/libs/type_traits/doc/html/boost_typetraits/reference/is_base_of.html Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/html/boost_typetraits/reference/is_base_of.html 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -36,6 +36,9 @@
</p>
<p>
This template will detect non-public base classes, and ambiguous base classes.
+ It also detects indirect base classes - which is to say <a class="link" href="is_base_of.html" title="is_base_of">is_base_of</a><B,
+ D> inherits from <a class="link" href="integral_constant.html" title="integral_constant">true_type</a>
+ if B is located anywhere in the inheritance tree of D.
</p>
<p>
Note that <code class="computeroutput"><span class="identifier">is_base_of</span><span class="special"><</span><span class="identifier">X</span><span class="special">,</span><span class="identifier">X</span><span class="special">></span></code> will inherit from <a class="link" href="integral_constant.html" title="integral_constant">true_type</a>
Modified: branches/release/libs/type_traits/doc/html/index/s11.html
==============================================================================
--- branches/release/libs/type_traits/doc/html/index/s11.html Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/html/index/s11.html 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="id1057160"></a>Class Index</h2></div></div></div>
+<a name="id1058267"></a>Class Index</h2></div></div></div>
<p><a class="link" href="s11.html#idx_id_0">A</a> <a class="link" href="s11.html#idx_id_2">C</a> <a class="link" href="s11.html#idx_id_3">D</a> <a class="link" href="s11.html#idx_id_4">E</a> <a class="link" href="s11.html#idx_id_5">F</a> <a class="link" href="s11.html#idx_id_6">H</a> <a class="link" href="s11.html#idx_id_7">I</a> <a class="link" href="s11.html#idx_id_8">M</a> <a class="link" href="s11.html#idx_id_9">N</a> <a class="link" href="s11.html#idx_id_10">O</a> <a class="link" href="s11.html#idx_id_11">P</a> <a class="link" href="s11.html#idx_id_12">R</a> <a class="link" href="s11.html#idx_id_13">T</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>
Modified: branches/release/libs/type_traits/doc/html/index/s12.html
==============================================================================
--- branches/release/libs/type_traits/doc/html/index/s12.html Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/html/index/s12.html 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="id1061269"></a>Typedef Index</h2></div></div></div>
+<a name="id1062377"></a>Typedef Index</h2></div></div></div>
<p><a class="link" href="s12.html#idx_id_20">F</a> <a class="link" href="s12.html#idx_id_27">R</a> <a class="link" href="s12.html#idx_id_28">T</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>
Modified: branches/release/libs/type_traits/doc/html/index/s13.html
==============================================================================
--- branches/release/libs/type_traits/doc/html/index/s13.html Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/html/index/s13.html 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -24,7 +24,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="id1061437"></a>Macro Index</h2></div></div></div>
+<a name="id1062545"></a>Macro Index</h2></div></div></div>
<p><a class="link" href="s13.html#idx_id_31">B</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>
Modified: branches/release/libs/type_traits/doc/html/index/s14.html
==============================================================================
--- branches/release/libs/type_traits/doc/html/index/s14.html Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/html/index/s14.html 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -23,7 +23,7 @@
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="id1062039"></a>Index</h2></div></div></div>
+<a name="id1063146"></a>Index</h2></div></div></div>
<p><a class="link" href="s14.html#idx_id_45">A</a> <a class="link" href="s14.html#idx_id_46">B</a> <a class="link" href="s14.html#idx_id_47">C</a> <a class="link" href="s14.html#idx_id_48">D</a> <a class="link" href="s14.html#idx_id_49">E</a> <a class="link" href="s14.html#idx_id_50">F</a> <a class="link" href="s14.html#idx_id_51">H</a> <a class="link" href="s14.html#idx_id_52">I</a> <a class="link" href="s14.html#idx_id_53">M</a> <a class="link" href="s14.html#idx_id_54">N</a> <a class="link" href="s14.html#idx_id_55">O</a> <a class="link" href="s14.html#idx_id_56">P</a> <a class="link" href="s14.html#idx_id_57">R</a> <a class="link" href="s14.html#idx_id_58">T</a> <a class="link" href="s14.html#idx_id_59">U</a></p>
<div class="variablelist"><dl class="variablelist">
<dt>
Modified: branches/release/libs/type_traits/doc/is_base_of.qbk
==============================================================================
--- branches/release/libs/type_traits/doc/is_base_of.qbk Thu Jun 13 12:06:30 2013 (r84761)
+++ branches/release/libs/type_traits/doc/is_base_of.qbk 2013-06-13 12:09:11 EDT (Thu, 13 Jun 2013) (r84762)
@@ -15,6 +15,8 @@
otherwise inherits from __false_type.
This template will detect non-public base classes, and ambiguous base classes.
+It also detects indirect base classes - which is to say __is_base_of<B, D> inherits
+from __true_type if B is located anywhere in the inheritance tree of D.
Note that `is_base_of<X,X>` will inherit from __true_type if X is a class type.
This is a change in behaviour
@@ -51,3 +53,4 @@
[endsect]
+
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk