diff --git a/test/algorithms/detail/partition.cpp b/test/algorithms/detail/partition.cpp index 61144fe8b..a668aa486 100644 --- a/test/algorithms/detail/partition.cpp +++ b/test/algorithms/detail/partition.cpp @@ -384,8 +384,6 @@ void fill_boxes(Collection& collection, int seed, int size, int count) } } - - void test_many_boxes(int seed, int size, int count) { typedef bg::model::box box_type; @@ -435,6 +433,10 @@ void test_many_boxes(int seed, int size, int count) typedef svg_visitor > partition_visitor_type; partition_visitor_type partition_visitor(mapper); +#else + typedef bg::visit_no_policy box_visitor_type; + box_visitor_type box_visitor; +#endif box_visitor visitor; bg::partition @@ -445,14 +447,8 @@ void test_many_boxes(int seed, int size, int count) BOOST_CHECK_EQUAL(visitor.count, expected_count); BOOST_CHECK_CLOSE(visitor.area, expected_area, 0.001); - -#endif } - - - - int test_main( int , char* [] ) { test_all >();