diff --git a/example/08_units_example.cpp b/example/08_units_example.cpp index 43f099823..5badd1287 100644 --- a/example/08_units_example.cpp +++ b/example/08_units_example.cpp @@ -153,10 +153,10 @@ namespace units template - inline typename quantity::type>::type + inline typename quantity::type>::type distance(Geometry1 const& g1, Geometry2 const& g2) { - typedef typename quantity::type>::type q; + typedef typename quantity::type>::type q; return q::from_value(geometry::distance(g1, g2)); } diff --git a/test/algorithms/comparable_distance.cpp b/test/algorithms/comparable_distance.cpp index 36bf442de..4b01320f3 100644 --- a/test/algorithms/comparable_distance.cpp +++ b/test/algorithms/comparable_distance.cpp @@ -27,7 +27,7 @@ template void test_distance_result() { - typedef typename bg::distance_result::type distance_type; + typedef typename bg::default_distance_result::type distance_type; P p1 = bg::make

(0, 0); P p2 = bg::make

(3, 0); diff --git a/test/algorithms/detail/partition.cpp b/test/algorithms/detail/partition.cpp index ea0af11d9..d0eef1c22 100644 --- a/test/algorithms/detail/partition.cpp +++ b/test/algorithms/detail/partition.cpp @@ -61,7 +61,7 @@ template struct box_visitor { int count; - typename bg::area_result::type area; + typename bg::default_area_result::type area; box_visitor() : count(0) diff --git a/test/algorithms/distance.cpp b/test/algorithms/distance.cpp index e9e68217d..f74637150 100644 --- a/test/algorithms/distance.cpp +++ b/test/algorithms/distance.cpp @@ -28,7 +28,7 @@ template void test_distance_point() { namespace services = bg::strategy::distance::services; - typedef typename bg::distance_result

::type return_type; + typedef typename bg::default_distance_result

::type return_type; // Basic, trivial test @@ -79,7 +79,7 @@ void test_distance_point() template void test_distance_segment() { - typedef typename bg::distance_result

::type return_type; + typedef typename bg::default_distance_result

::type return_type; typedef typename bg::coordinate_type

::type coordinate_type; P s1; bg::set<0>(s1, 1); bg::set<1>(s1, 1); @@ -134,7 +134,7 @@ void test_distance_segment() template void test_distance_array_as_linestring() { - typedef typename bg::distance_result

::type return_type; + typedef typename bg::default_distance_result

::type return_type; // Normal array does not have boost::array points; diff --git a/test/algorithms/intersection.cpp b/test/algorithms/intersection.cpp index b97b5d717..065b27e03 100644 --- a/test/algorithms/intersection.cpp +++ b/test/algorithms/intersection.cpp @@ -217,7 +217,7 @@ void test_boxes(std::string const& wkt1, std::string const& wkt2, double expecte Box box_out; bool detected = bg::intersection(box1, box2, box_out); - typename bg::area_result::type area = bg::area(box_out); + typename bg::default_area_result::type area = bg::area(box_out); BOOST_CHECK_EQUAL(detected, expected_result); if (detected && expected_result) diff --git a/test/algorithms/overlay/assemble.cpp b/test/algorithms/overlay/assemble.cpp index de9e84279..ac4121e5f 100644 --- a/test/algorithms/overlay/assemble.cpp +++ b/test/algorithms/overlay/assemble.cpp @@ -46,7 +46,7 @@ inline void test_assemble(std::string const& id, Geometry const& p, Geometry con if (operation == 'i') { - typedef typename bg::area_result::type type; + typedef typename bg::default_area_result::type type; type area_p = bg::area(p); type area_q = bg::area(q); diff --git a/test/algorithms/overlay/traverse.cpp b/test/algorithms/overlay/traverse.cpp index ffffd71ba..3d6b1eca5 100644 --- a/test/algorithms/overlay/traverse.cpp +++ b/test/algorithms/overlay/traverse.cpp @@ -168,7 +168,7 @@ struct test_traverse ); // Check total area of resulting rings - typename bg::area_result::type total_area = 0; + typename bg::default_area_result::type total_area = 0; BOOST_FOREACH(ring_type const& ring, v) { total_area += bg::area(ring); diff --git a/test/algorithms/test_area.hpp b/test/algorithms/test_area.hpp index c8c97a68a..111340a1a 100644 --- a/test/algorithms/test_area.hpp +++ b/test/algorithms/test_area.hpp @@ -19,15 +19,15 @@ template void test_area(Geometry const& geometry, - typename bg::area_result::type expected_area) + typename bg::default_area_result::type expected_area) { - typename bg::area_result::type area = bg::area(geometry); + typename bg::default_area_result::type area = bg::area(geometry); #ifdef GEOMETRY_TEST_DEBUG std::ostringstream out; out << typeid(typename bg::coordinate_type::type).name() << " " - << typeid(typename bg::area_result::type).name() + << typeid(typename bg::default_area_result::type).name() << " " << "area : " << bg::area(geometry) << std::endl; @@ -56,7 +56,7 @@ void test_area(Geometry const& geometry, template void test_geometry(std::string const& wkt, - typename bg::area_result::type expected_area) + typename bg::default_area_result::type expected_area) { Geometry geometry; bg::read_wkt(wkt, geometry); diff --git a/test/algorithms/test_convex_hull.hpp b/test/algorithms/test_convex_hull.hpp index 1d2737d89..72d6e05e0 100644 --- a/test/algorithms/test_convex_hull.hpp +++ b/test/algorithms/test_convex_hull.hpp @@ -41,7 +41,7 @@ void test_convex_hull(Geometry const& geometry, Hull const& hull, BOOST_CHECK(bg::num_points(geometry) == size_original); - typename bg::area_result::type ah = bg::area(hull); + typename bg::default_area_result::type ah = bg::area(hull); if (reverse) { ah = -ah; diff --git a/test/algorithms/test_difference.hpp b/test/algorithms/test_difference.hpp index f7234baa0..b643c10b8 100644 --- a/test/algorithms/test_difference.hpp +++ b/test/algorithms/test_difference.hpp @@ -64,7 +64,7 @@ void test_difference(std::string const& caseid, G1 const& g1, G2 const& g2, bg::difference(g1, g2, clip); } - typename bg::area_result::type area = 0; + typename bg::default_area_result::type area = 0; std::size_t n = 0; for (typename std::vector::iterator it = clip.begin(); it != clip.end(); diff --git a/test/algorithms/test_distance.hpp b/test/algorithms/test_distance.hpp index 736e0c5ce..b527eba3a 100644 --- a/test/algorithms/test_distance.hpp +++ b/test/algorithms/test_distance.hpp @@ -111,13 +111,13 @@ void test_distance(Geometry1 const& geometry1, Geometry2 const& geometry2, long double expected_distance) { - typename bg::distance_result::type distance = bg::distance(geometry1, geometry2); + typename bg::default_distance_result::type distance = bg::distance(geometry1, geometry2); #ifdef GEOMETRY_TEST_DEBUG std::ostringstream out; out << typeid(typename bg::coordinate_type::type).name() << std::endl - << typeid(typename bg::distance_result::type).name() + << typeid(typename bg::default_distance_result::type).name() << std::endl << "distance : " << bg::distance(geometry1, geometry2) << std::endl; diff --git a/test/algorithms/test_intersection.hpp b/test/algorithms/test_intersection.hpp index ff1ef18b2..f2b310788 100644 --- a/test/algorithms/test_intersection.hpp +++ b/test/algorithms/test_intersection.hpp @@ -36,7 +36,7 @@ template -typename bg::area_result::type test_intersection(std::string const& caseid, +typename bg::default_area_result::type test_intersection(std::string const& caseid, G1 const& g1, G2 const& g2, std::size_t expected_count = 0, std::size_t expected_point_count = 0, double expected_length_or_area = 0, @@ -69,7 +69,7 @@ typename bg::area_result::type test_intersection(std::string const& caseid, bg::detail::intersection::intersection_insert(g1, g2, std::back_inserter(clip), strategy()); - typename bg::area_result::type length_or_area = 0; + typename bg::default_area_result::type length_or_area = 0; std::size_t n = 0; for (typename std::vector::iterator it = clip.begin(); it != clip.end(); @@ -174,7 +174,7 @@ typename bg::area_result::type test_intersection(std::string const& caseid, } template -typename bg::area_result::type test_one(std::string const& caseid, +typename bg::default_area_result::type test_one(std::string const& caseid, std::string const& wkt1, std::string const& wkt2, std::size_t expected_count = 0, std::size_t expected_point_count = 0, double expected_length_or_area = 0, diff --git a/test/algorithms/test_length.hpp b/test/algorithms/test_length.hpp index e3e7eacda..511c3ca85 100644 --- a/test/algorithms/test_length.hpp +++ b/test/algorithms/test_length.hpp @@ -18,13 +18,13 @@ template void test_length(Geometry const& geometry, long double expected_length) { - typename bg::length_result::type length = bg::length(geometry); + typename bg::default_length_result::type length = bg::length(geometry); #ifdef GEOMETRY_TEST_DEBUG std::ostringstream out; out << typeid(typename bg::coordinate_type::type).name() << std::endl - << typeid(typename bg::length_result::type).name() + << typeid(typename bg::default_length_result::type).name() << std::endl << "length : " << bg::length(geometry) << std::endl; diff --git a/test/algorithms/test_perimeter.hpp b/test/algorithms/test_perimeter.hpp index e97156d13..67b35b35f 100644 --- a/test/algorithms/test_perimeter.hpp +++ b/test/algorithms/test_perimeter.hpp @@ -21,7 +21,7 @@ template void test_perimeter(Geometry const& geometry, long double expected_perimeter) { - typename bg::distance_result::type perimeter = bg::perimeter(geometry); + typename bg::default_distance_result::type perimeter = bg::perimeter(geometry); #ifdef GEOMETRY_TEST_DEBUG std::ostringstream out; diff --git a/test/algorithms/test_union.hpp b/test/algorithms/test_union.hpp index 7f09cfd74..0678afadb 100644 --- a/test/algorithms/test_union.hpp +++ b/test/algorithms/test_union.hpp @@ -45,7 +45,7 @@ void test_union(std::string const& caseid, G1 const& g1, G2 const& g2, std::vector clip; bg::union_(g1, g2, clip); - typename bg::area_result::type area = 0; + typename bg::default_area_result::type area = 0; std::size_t n = 0; std::size_t holes = 0; for (typename std::vector::iterator it = clip.begin(); @@ -68,7 +68,7 @@ void test_union(std::string const& caseid, G1 const& g1, G2 const& g2, array_with_one_empty_geometry.push_back(OutputType()); boost::copy(array_with_one_empty_geometry, bg::detail::union_::union_insert(g1, g2, std::back_inserter(inserted))); - typename bg::area_result::type area_inserted = 0; + typename bg::default_area_result::type area_inserted = 0; for (typename std::vector::iterator it = inserted.begin(); it != inserted.end(); ++it) { diff --git a/test/extensions/algorithms/connect.cpp b/test/extensions/algorithms/connect.cpp index 1dd79300f..58e8f48df 100644 --- a/test/extensions/algorithms/connect.cpp +++ b/test/extensions/algorithms/connect.cpp @@ -51,7 +51,7 @@ void test_connect(std::string const& caseid, Geometry const& geometry, bg::connect(geometry, connected_vector); } - typename bg::length_result::type length = 0; + typename bg::default_length_result::type length = 0; std::size_t count = boost::size(connected_vector); std::size_t point_count = 0; diff --git a/test/extensions/algorithms/dissolve.cpp b/test/extensions/algorithms/dissolve.cpp index c85cd4915..93ba24e0b 100644 --- a/test/extensions/algorithms/dissolve.cpp +++ b/test/extensions/algorithms/dissolve.cpp @@ -83,7 +83,7 @@ void test_dissolve(std::string const& caseid, Geometry const& geometry, std::vector dissolved_vector; bg::dissolve_inserter(geometry, std::back_inserter(dissolved_vector)); - typename bg::area_result::type length_or_area = 0; + typename bg::default_area_result::type length_or_area = 0; //std::size_t holes = 0; std::size_t count = 0; diff --git a/test/extensions/algorithms/offset.cpp b/test/extensions/algorithms/offset.cpp index 96c6a7e1a..fbecae3f7 100644 --- a/test/extensions/algorithms/offset.cpp +++ b/test/extensions/algorithms/offset.cpp @@ -47,7 +47,7 @@ void test_offset(std::string const& caseid, Geometry const& geometry, GeometryOut moved_by_offset; bg::offset(geometry, moved_by_offset, join_strategy(2), distance); - typename bg::length_result::type length + typename bg::default_length_result::type length = bg::length(moved_by_offset); /* diff --git a/test/multi/algorithms/multi_distance.cpp b/test/multi/algorithms/multi_distance.cpp index ad749e9f5..9b8375b68 100644 --- a/test/multi/algorithms/multi_distance.cpp +++ b/test/multi/algorithms/multi_distance.cpp @@ -35,7 +35,7 @@ void test_distance(std::string const& wkt1, std::string const& wkt2, double expe Geometry2 g2; bg::read_wkt(wkt1, g1); bg::read_wkt(wkt2, g2); - typename bg::distance_result::type d = bg::distance(g1, g2); + typename bg::default_distance_result::type d = bg::distance(g1, g2); BOOST_CHECK_CLOSE(d, expected, 0.0001); } @@ -48,7 +48,7 @@ void test_distance(Strategy const& strategy, std::string const& wkt1, Geometry2 g2; bg::read_wkt(wkt1, g1); bg::read_wkt(wkt2, g2); - typename bg::distance_result::type d = bg::distance(g1, g2, strategy); + typename bg::default_distance_result::type d = bg::distance(g1, g2, strategy); BOOST_CHECK_CLOSE(d, expected, 0.0001); }