mirror of https://github.com/CGAL/cgal
test for result_type is Cast
This commit is contained in:
parent
671b2043c1
commit
fa4d721510
|
|
@ -326,12 +326,14 @@ template <class A, class B, class RT>
|
||||||
void test_explicit_interoperable_one_way(){
|
void test_explicit_interoperable_one_way(){
|
||||||
typedef CGAL::Coercion_traits<A,B> CT;
|
typedef CGAL::Coercion_traits<A,B> CT;
|
||||||
typedef typename CT::Type Type;
|
typedef typename CT::Type Type;
|
||||||
|
typedef typename CT::Cast Cast;
|
||||||
|
typedef typename Cast::result_type result_type;
|
||||||
|
|
||||||
assert(
|
BOOST_STATIC_ASSERT((::boost::is_same<result_type,Type>::value));
|
||||||
(::boost::is_same< typename CT::Are_explicit_interoperable,CGAL::Tag_true>::value));
|
BOOST_STATIC_ASSERT((::boost::is_same< typename CT::Are_explicit_interoperable,CGAL::Tag_true>::value));
|
||||||
assert((::boost::is_same<Type,RT>::value));
|
BOOST_STATIC_ASSERT((::boost::is_same<Type,RT>::value));
|
||||||
|
|
||||||
typename CT::Cast cast;
|
typename CT::Cast cast;
|
||||||
|
|
||||||
A a(3);
|
A a(3);
|
||||||
B b(3);
|
B b(3);
|
||||||
RT rt(3);
|
RT rt(3);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue