Fix using C++17 static asserts

This commit is contained in:
Mael Rouxel-Labbé 2025-03-10 13:31:01 +01:00
parent 639b513993
commit 6ce3d6140a
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ template<class OutPolygon, class FT, class Skeleton, class K>
std::vector< boost::shared_ptr<OutPolygon> > std::vector< boost::shared_ptr<OutPolygon> >
create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& , Tag_false ) create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& , Tag_false )
{ {
static_assert(!(std::is_same<OutPolygon, CGAL::Default>::value)); static_assert(!(std::is_same<OutPolygon, CGAL::Default>::value), "");
typedef boost::shared_ptr<OutPolygon> OutPolygonPtr ; typedef boost::shared_ptr<OutPolygon> OutPolygonPtr ;
typedef std::vector<OutPolygonPtr> OutPolygonPtrVector ; typedef std::vector<OutPolygonPtr> OutPolygonPtrVector ;
@ -167,7 +167,7 @@ template<class OutPolygon, class FT, class Skeleton, class K>
std::vector< boost::shared_ptr<OutPolygon> > std::vector< boost::shared_ptr<OutPolygon> >
create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& /*k*/, Tag_true ) create_offset_polygons_2 ( FT const& aOffset, Skeleton const& aSs, K const& /*k*/, Tag_true )
{ {
static_assert(!(std::is_same<OutPolygon, CGAL::Default>::value)); static_assert(!(std::is_same<OutPolygon, CGAL::Default>::value), "");
typedef boost::shared_ptr<OutPolygon> OutPolygonPtr ; typedef boost::shared_ptr<OutPolygon> OutPolygonPtr ;
typedef std::vector<OutPolygonPtr> OutPolygonPtrVector ; typedef std::vector<OutPolygonPtr> OutPolygonPtrVector ;