cgal/Polynomial/test/Polynomial/test_polynomial_Get_arithme...

26 lines
712 B
C++

#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Polynomial.h>
template<class AK>
void test_get_arithmetic_kernel(){
typedef typename AK::Integer Integer;
{
typedef CGAL::Polynomial<Integer> POLY;
typedef typename CGAL::Get_arithmetic_kernel<POLY>::Arithmetic_kernel AK_;
static_assert(std::is_same<AK,AK_>::value);
}{
typedef CGAL::Polynomial<CGAL::Polynomial<Integer> > POLY;
typedef typename CGAL::Get_arithmetic_kernel<POLY>::Arithmetic_kernel AK_;
static_assert(std::is_same<AK,AK_>::value);
}
}
int main(){
#ifdef CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL
test_get_arithmetic_kernel<CGAL::Arithmetic_kernel>();
#endif // CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL
return 0;
}