Skip to content

Commit

Permalink
use CGAL_static_assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Nov 5, 2024
1 parent 8923228 commit c636cd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/method/alpha_shape_CGAL4.10_and_earlier.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class Alpha_shape_2 : public Dt

typedef typename internal::Alpha_nt_selector_2<Gt,ExactAlphaComparisonTag>::Type_of_alpha Type_of_alpha;
//check simplices are correctly instantiated
static_assert( (boost::is_same<Type_of_alpha,typename Dt::Face::FT>::value) );
static_assert( (boost::is_same<Type_of_alpha,typename Dt::Vertex::FT>::value) );
CGAL_static_assertion( (boost::is_same<Type_of_alpha,typename Dt::Face::FT>::value) );
CGAL_static_assertion( (boost::is_same<Type_of_alpha,typename Dt::Vertex::FT>::value) );

typedef Type_of_alpha NT;
typedef Type_of_alpha FT;
Expand Down
4 changes: 2 additions & 2 deletions code/method/alpha_shape_CGAL4.11_and_later.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Alpha_shape_2 : public Dt
typedef Type_of_alpha FT;

//check simplices are correctly instantiated
static_assert( (boost::is_same<NT, typename Dt::Face::NT>::value) );
static_assert( (boost::is_same<NT, typename Dt::Vertex::NT>::value) );
CGAL_static_assertion( (boost::is_same<NT, typename Dt::Face::NT>::value) );
CGAL_static_assertion( (boost::is_same<NT, typename Dt::Vertex::NT>::value) );

typedef typename Dt::Point Point;

Expand Down

0 comments on commit c636cd0

Please sign in to comment.