diff --git a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h index d7419f80846..455ff4828b8 100644 --- a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h +++ b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h @@ -61,7 +61,7 @@ _test_cdt_throwing(const Pt& p0, const Pt& p1, const Pt& p2, const Pt& p3, { assert(intersection_type == INTERSECTION); assert((boost::is_same::value) || -#ifndef CGAL_NO_DEPRECATED_CODE +#if !defined(CGAL_NO_DEPRECATED_CODE) && defined(CGAL_NO_DEPRECATION_WARNINGS) (boost::is_same::value) || #endif (boost::is_same::value)); @@ -78,7 +78,7 @@ _test_cdt_throwing(const Pt& p0, const Pt& p1, const Pt& p2, const Pt& p3, else if(intersection_type == INTERSECTION) { assert(!(boost::is_same::value) && -#ifndef CGAL_NO_DEPRECATED_CODE +#if !defined(CGAL_NO_DEPRECATED_CODE) && defined(CGAL_NO_DEPRECATION_WARNINGS) !(boost::is_same::value) && #endif !(boost::is_same::value));