Files
cgal/Arithmetic_kernel/test/Arithmetic_kernel/Get_arithmetic_kernel.cpp
T
Sébastien Loriot 0779373835 extra run of the script to remove tabs and trailing whitespaces
right after the  merge of 4.14 release branch

+ manual fix on one line in:
    * Arrangement_on_surface_2/include/CGAL/IO/Arr_text_formatter.h
    * .travis/generate_travis.sh
2020-03-26 14:16:06 +01:00

40 lines
969 B
C++

#include <iostream>
#include <CGAL/Arithmetic_kernel.h>
#include <CGAL/Get_arithmetic_kernel.h>
#include <CGAL/use.h>
#if defined(CGAL_HAS_DEFAULT_ARITHMETIC_KERNEL)
#include <CGAL/Test/_test_arithmetic_kernel.h>
int main() {
typedef CGAL::Arithmetic_kernel AK;
typedef AK::Integer Integer;
typedef AK::Rational Rational;
typedef AK::Bigfloat_interval BFI;
{
typedef CGAL::Get_arithmetic_kernel<Integer>::Arithmetic_kernel AK_;
CGAL_USE_TYPE(AK_);
CGAL_static_assertion((boost::is_same<AK,AK_>::value));
}
{
typedef CGAL::Get_arithmetic_kernel<Rational>::Arithmetic_kernel AK_;
CGAL_USE_TYPE(AK_);
CGAL_static_assertion((boost::is_same<AK,AK_>::value));
}
{
typedef CGAL::Get_arithmetic_kernel<BFI>::Arithmetic_kernel AK_;
CGAL_USE_TYPE(AK_);
CGAL_static_assertion((boost::is_same<AK,AK_>::value));
}
return 0;
}
#else
#warning CGAL has no default CGAL::Arithmetic kernel
int main() { return 0; }
#endif