Compile in C++03 and C++14

This commit is contained in:
Andreas Fabri 2020-03-02 12:52:23 +00:00
parent b1c2910b9e
commit a3719c3628
3 changed files with 13 additions and 11 deletions

View File

@ -75,8 +75,8 @@ template<class Dim>
struct Epick_d_help3 struct Epick_d_help3
: CGAL_BASE : CGAL_BASE
{ {
constexpr Epick_d_help3(){} CGAL_CONSTEXPR Epick_d_help3(){}
constexpr Epick_d_help3(int d):CGAL_BASE(d){} CGAL_CONSTEXPR Epick_d_help3(int d):CGAL_BASE(d){}
}; };
#undef CGAL_BASE #undef CGAL_BASE
#define CGAL_BASE \ #define CGAL_BASE \

View File

@ -63,7 +63,7 @@ struct Cartesian_filter_K : public Base_,
typedef Base_ Kernel_base; typedef Base_ Kernel_base;
typedef AK_ AK; typedef AK_ AK;
typedef EK_ EK; typedef EK_ EK;
static_assert(internal::Do_not_store_kernel<AK>::value, "Only handle stateless kernels as AK"); CGAL_static_assertion_msg(internal::Do_not_store_kernel<AK>::value, "Only handle stateless kernels as AK");
AK approximate_kernel()const{return {};} AK approximate_kernel()const{return {};}
typedef typename Store_kernel<EK_>::reference_type EK_rt; typedef typename Store_kernel<EK_>::reference_type EK_rt;
EK_rt exact_kernel()const{return this->Store_kernel<EK>::kernel();} EK_rt exact_kernel()const{return this->Store_kernel<EK>::kernel();}

View File

@ -88,8 +88,10 @@ namespace CGAL {
struct typeset<H,T>::add<H,V> : typeset<H,T> {}; struct typeset<H,T>::add<H,V> : typeset<H,T> {};
struct typeset_all { struct typeset_all {
typedef typeset_all type; typedef typeset_all type;
template<class X> struct contains : public std::true_type {}; template<class X> struct contains : public boost::true_type {};
template<class X> struct add : public typeset_all {}; template<class X> struct add {
typedef typeset_all type;
};
}; };
#endif #endif