Replaced boost_static_assert with cgal_static_assert and used () guards

This commit is contained in:
Mael Rouxel-Labbé 2017-06-22 13:16:26 +02:00
parent 2f519b0945
commit 044deb6c7e
3 changed files with 13 additions and 15 deletions

View File

@ -28,8 +28,9 @@
#include <CGAL/Mesh_3/config.h>
#include <CGAL/basic.h>
#include <CGAL/array.h>
#include <CGAL/assertions.h>
#include <CGAL/basic.h>
#include <CGAL/triangulation_assertions.h>
#include <CGAL/internal/Dummy_tds_3.h>
#include <CGAL/tags.h>
@ -38,7 +39,6 @@
#include <CGAL/Regular_triangulation_cell_base_3.h>
#include <CGAL/Mesh_3/io_signature.h>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>
#ifdef CGAL_LINKED_WITH_TBB
@ -480,8 +480,8 @@ public:
template<typename GT_>
const Point_3& weighted_circumcenter(const GT_& gt) const
{
BOOST_STATIC_ASSERT(boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value);
CGAL_static_assertion((boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value));
if (weighted_circumcenter_ == NULL) {
this->try_to_set_circumcenter(
new Point_3(gt.construct_weighted_circumcenter_3_object()

View File

@ -26,13 +26,12 @@
#include <CGAL/license/Triangulation_3.h>
#include <CGAL/assertions.h>
#include <CGAL/basic.h>
#include <CGAL/triangulation_assertions.h>
#include <CGAL/Triangulation_ds_cell_base_3.h>
#include <CGAL/Triangulation_cell_base_3.h>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>
namespace CGAL {
@ -48,8 +47,8 @@ public:
template <typename GT_>
Point circumcenter(const GT_& gt) const
{
BOOST_STATIC_ASSERT(boost::is_same<Point,
typename GT_::Construct_circumcenter_3::result_type>::value);
CGAL_static_assertion((boost::is_same<Point,
typename GT_::Construct_circumcenter_3::result_type>::value));
return gt.construct_circumcenter_3_object()(this->vertex(0)->point(),
this->vertex(1)->point(),
this->vertex(2)->point(),

View File

@ -25,15 +25,14 @@
#include <CGAL/license/Triangulation_3.h>
#include <CGAL/assertions.h>
#include <CGAL/Hidden_point_memory_policy.h>
#include <CGAL/Triangulation_cell_base_3.h>
#include <boost/utility/enable_if.hpp>
#include <list>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/utility/enable_if.hpp>
namespace CGAL {
@ -141,8 +140,8 @@ public:
template<typename GT_>
Point_3 circumcenter(const GT_& gt) const
{
BOOST_STATIC_ASSERT(boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value);
CGAL_static_assertion((boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value));
return gt.construct_weighted_circumcenter_3_object()
(this->vertex(0)->point(),
this->vertex(1)->point(),
@ -158,8 +157,8 @@ public:
template<typename GT_>
Point_3 weighted_circumcenter(const GT_& gt) const
{
BOOST_STATIC_ASSERT(boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value);
CGAL_static_assertion((boost::is_same<Point_3,
typename GT_::Construct_weighted_circumcenter_3::result_type>::value));
return gt.construct_weighted_circumcenter_3_object()
(this->vertex(0)->point(),
this->vertex(1)->point(),