Use a fully-qualified name for ::test, because otherwise there is a

conflict with something from Boost:

/home/lrineau/CGAL/boost/1.44-beta1/include/boost/type_traits/has_new_operator.hpp: In function 'int main()':
/home/lrineau/CGAL/boost/1.44-beta1/include/boost/type_traits/has_new_operator.hpp:24: error: 'template<class U, U x> struct boost::detail::test' is not a function,
/home/lrineau/CGAL/CGAL-3.7-I-135/cmake/platforms/x86-64_Linux-2.6_g++-4.4.4_F13-MATCHING-BUG-6/test/Min_sphere_of_spheres_d/interface_check.cpp:147: error:   conflict with 'template<int D, class FT, class Sqrt, class Alg> void test(int, const FT&)'
/home/lrineau/CGAL/CGAL-3.7-I-135/cmake/platforms/x86-64_Linux-2.6_g++-4.4.4_F13-MATCHING-BUG-6/test/Min_sphere_of_spheres_d/interface_check.cpp:210: error:   in call to 'test'
This commit is contained in:
Laurent Rineau 2010-08-13 16:19:37 +00:00
parent 99d011165e
commit cd66f60d5f
1 changed files with 24 additions and 24 deletions

View File

@ -207,44 +207,44 @@ int main () {
const float tf = 5.0e-7f; // tolerance for float computation
cout << "test exact LP-algorithm with sqrts:" << endl;
test<2,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
test<3,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
test<5,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
::test<2,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
::test<3,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
::test<5,FieldType,CGAL::Tag_true,CGAL::LP_algorithm>(N,T);
cout << "test exact LP-algorithm without sqrts:" << endl;
test<2,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
test<3,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
test<5,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
::test<2,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
::test<3,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
::test<5,FieldType,CGAL::Tag_false,CGAL::LP_algorithm>(N,T);
cout << "test exact farthest-first heuristic with sqrts:" << endl;
test<2,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
test<3,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
test<5,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
::test<2,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
::test<3,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
::test<5,FieldType,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,T);
cout << "test exact farthest-first heuristic without sqrts:" << endl;
test<2,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
test<3,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
test<5,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
::test<2,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
::test<3,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
::test<5,FieldType,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,T);
cout << "test double farthest-first heuristic with sqrts:" << endl;
test<2,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
test<3,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
test<5,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
::test<2,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
::test<3,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
::test<5,double,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,t);
cout << "test double farthest-first heuristic without sqrts:" << endl;
test<2,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
test<3,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
test<5,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
::test<2,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
::test<3,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
::test<5,double,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,t);
cout << "test float farthest-first heuristic with sqrts:" << endl;
test<2,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
test<3,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
test<5,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
::test<2,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
::test<3,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
::test<5,float,CGAL::Tag_true,CGAL::Farthest_first_heuristic>(N,tf);
cout << "test float farthest-first heuristic without sqrts:" << endl;
test<2,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
test<3,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
test<5,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
::test<2,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
::test<3,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
::test<5,float,CGAL::Tag_false,CGAL::Farthest_first_heuristic>(N,tf);
cout << endl
<< "Notice: Because the LP-algorithm is not good when used with" << endl