#include #include #include #include #include #include #include typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef CGAL::Triangulation_2 Triangulation; typedef Triangulation::Point Point; template typename CGAL::Coercion_traits::Type binary_func(const A& a , const B& b){ typedef CGAL::Coercion_traits CT; static_assert(CT::Are_explicit_interoperable::value); typename CT::Cast cast; return cast(a)*cast(b); } int main(int argc, char**) { std::cout<< binary_func(double(3), int(5)) << std::endl; std::cout<< binary_func(int(3), double(5)) << std::endl; std::ifstream in("data/triangulation_prog1.cin"); std::istream_iterator begin(in); std::istream_iterator end; Triangulation t; t.insert(begin, end); if(argc == 3) // do not test Qt5 at runtime CGAL::draw(t); std::cout<<"OK."<