hide a test when using intersection API v1

This commit is contained in:
Sébastien Loriot 2013-09-25 18:10:20 +02:00
parent e1b3a2d582
commit 944e30a1ea
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,7 @@ int main()
}
obj = CGAL::intersection(s1,s2);
#if CGAL_INTERSECTION_VERSION > 1
// check the variant return type
CGAL::cpp11::result_of<K::Intersect_2(Triangle_2, Triangle_2) >::type o_variant = CGAL::intersection(t1,t2);
if(!o_variant) {
@ -53,6 +54,7 @@ int main()
std::cerr << CGAL::exact((*V)[i]) << std::endl;
}
}
#endif
}
{
@ -74,6 +76,7 @@ int main()
}
}
#if CGAL_INTERSECTION_VERSION > 1
// check the variant return type
CGAL::cpp11::result_of<K::Intersect_3(Triangle_3, Triangle_3)>::type o_variant = CGAL::intersection(t1,t2);
if(!o_variant) {
@ -93,7 +96,7 @@ int main()
std::cerr << CGAL::exact((*V)[i]) << std::endl;
}
}
#endif
}
//making the interval construction failing
{