From 249fab960e801f1fc9a860dec91d07922cc1256c Mon Sep 17 00:00:00 2001
From: John Maddock
Date: Thu, 10 Jan 2002 12:45:29 +0000
Subject: [PATCH] Added some missing caveats
[SVN r12267]
---
index.htm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/index.htm b/index.htm
index 5a9f869..4223394 100644
--- a/index.htm
+++ b/index.htm
@@ -529,7 +529,8 @@ relationship between two types:
Note that
this template is currently broken with Borland's
- compiler, for constructor-based conversions. |
+ compiler, for constructor-based conversions, and for the
+ Metrowerks compiler in all cases.
|
@@ -543,7 +544,16 @@ relationship between two types:
-
+Note that both is_convertible
, and is_base_and_derived
can
+produce compiler errors if the convertion is ambiguous:
+
+struct A {};
+struct B : A {};
+struct C : A {};
+struct D : B, C {};
+bool const x = boost::is_base_and_derived<A,D>::value; // error
+bool const y = boost::is_convertible<D*,A*>::value; // error
+
Transformations Between Types
@@ -1324,3 +1334,4 @@ discussion list at www.yahoogroups.com/list/boost.