From 044deb6c7e3e5bc2420fcb238baddbfa4ef86a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Thu, 22 Jun 2017 13:16:26 +0200 Subject: [PATCH] Replaced boost_static_assert with cgal_static_assert and used () guards --- Mesh_3/include/CGAL/Compact_mesh_cell_base_3.h | 8 ++++---- .../CGAL/Delaunay_triangulation_cell_base_3.h | 7 +++---- .../CGAL/Regular_triangulation_cell_base_3.h | 13 ++++++------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/Mesh_3/include/CGAL/Compact_mesh_cell_base_3.h b/Mesh_3/include/CGAL/Compact_mesh_cell_base_3.h index e6e75beaaff..67c3a2444f7 100644 --- a/Mesh_3/include/CGAL/Compact_mesh_cell_base_3.h +++ b/Mesh_3/include/CGAL/Compact_mesh_cell_base_3.h @@ -28,8 +28,9 @@ #include -#include #include +#include +#include #include #include #include @@ -38,7 +39,6 @@ #include #include -#include #include #ifdef CGAL_LINKED_WITH_TBB @@ -480,8 +480,8 @@ public: template const Point_3& weighted_circumcenter(const GT_& gt) const { - BOOST_STATIC_ASSERT(boost::is_same::value); + CGAL_static_assertion((boost::is_same::value)); if (weighted_circumcenter_ == NULL) { this->try_to_set_circumcenter( new Point_3(gt.construct_weighted_circumcenter_3_object() diff --git a/Triangulation_3/include/CGAL/Delaunay_triangulation_cell_base_3.h b/Triangulation_3/include/CGAL/Delaunay_triangulation_cell_base_3.h index 5e100ccdf78..018aa4d2f6f 100644 --- a/Triangulation_3/include/CGAL/Delaunay_triangulation_cell_base_3.h +++ b/Triangulation_3/include/CGAL/Delaunay_triangulation_cell_base_3.h @@ -26,13 +26,12 @@ #include - +#include #include #include #include #include -#include #include namespace CGAL { @@ -48,8 +47,8 @@ public: template Point circumcenter(const GT_& gt) const { - BOOST_STATIC_ASSERT(boost::is_same::value); + CGAL_static_assertion((boost::is_same::value)); return gt.construct_circumcenter_3_object()(this->vertex(0)->point(), this->vertex(1)->point(), this->vertex(2)->point(), diff --git a/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_3.h b/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_3.h index 4d8add9c4ec..0fd8ca7799c 100644 --- a/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_3.h +++ b/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_3.h @@ -25,15 +25,14 @@ #include +#include #include #include -#include - #include -#include #include +#include namespace CGAL { @@ -141,8 +140,8 @@ public: template Point_3 circumcenter(const GT_& gt) const { - BOOST_STATIC_ASSERT(boost::is_same::value); + CGAL_static_assertion((boost::is_same::value)); return gt.construct_weighted_circumcenter_3_object() (this->vertex(0)->point(), this->vertex(1)->point(), @@ -158,8 +157,8 @@ public: template Point_3 weighted_circumcenter(const GT_& gt) const { - BOOST_STATIC_ASSERT(boost::is_same::value); + CGAL_static_assertion((boost::is_same::value)); return gt.construct_weighted_circumcenter_3_object() (this->vertex(0)->point(), this->vertex(1)->point(),