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 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 +