From 03648e366448e2eab0cee78817a729a280fb6a9f Mon Sep 17 00:00:00 2001
From: John Maddock
Date: Thu, 13 Jun 2013 16:06:30 +0000
Subject: [PATCH] Clarify that base classes include indirect ancestors. Refs
#8407.
[SVN r84761]
---
doc/html/boost_typetraits/reference/is_base_of.html | 3 +++
doc/html/index/s11.html | 2 +-
doc/html/index/s12.html | 2 +-
doc/html/index/s13.html | 2 +-
doc/html/index/s14.html | 2 +-
doc/is_base_of.qbk | 3 +++
6 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/doc/html/boost_typetraits/reference/is_base_of.html b/doc/html/boost_typetraits/reference/is_base_of.html
index 9023504..3c91f8d 100644
--- a/doc/html/boost_typetraits/reference/is_base_of.html
+++ b/doc/html/boost_typetraits/reference/is_base_of.html
@@ -36,6 +36,9 @@
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
diff --git a/doc/html/index/s11.html b/doc/html/index/s11.html
index 2c61051..981c3a8 100644
--- a/doc/html/index/s11.html
+++ b/doc/html/index/s11.html
@@ -24,7 +24,7 @@
A C D E F H I M N O P R T
-
diff --git a/doc/html/index/s12.html b/doc/html/index/s12.html
index 678f080..d74bc35 100644
--- a/doc/html/index/s12.html
+++ b/doc/html/index/s12.html
@@ -24,7 +24,7 @@
F R T
-
diff --git a/doc/html/index/s13.html b/doc/html/index/s13.html
index 76d956f..3935d66 100644
--- a/doc/html/index/s13.html
+++ b/doc/html/index/s13.html
@@ -24,7 +24,7 @@
B
-
diff --git a/doc/html/index/s14.html b/doc/html/index/s14.html
index 73bf546..99ae38e 100644
--- a/doc/html/index/s14.html
+++ b/doc/html/index/s14.html
@@ -23,7 +23,7 @@
A B C D E F H I M N O P R T U
-
diff --git a/doc/is_base_of.qbk b/doc/is_base_of.qbk
index 6ee3f43..78712b3 100644
--- a/doc/is_base_of.qbk
+++ b/doc/is_base_of.qbk
@@ -15,6 +15,8 @@ class type then inherits from __true_type,
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 inherits
+from __true_type if B is located anywhere in the inheritance tree of D.
Note that `is_base_of` will inherit from __true_type if X is a class type.
This is a change in behaviour
@@ -51,3 +53,4 @@ expression that evaluates to /true/: a class is regarded as it's own base.]
[endsect]
+