diff --git a/test/algorithms/covered_by.cpp b/test/algorithms/covered_by.cpp index e1692a32e..ad2cfac22 100644 --- a/test/algorithms/covered_by.cpp +++ b/test/algorithms/covered_by.cpp @@ -87,7 +87,8 @@ void test_mixed_of() typedef boost::geometry::model::box box_type1; typedef boost::geometry::model::box box_type2; - polygon_type1 poly1, poly2; + polygon_type1 poly1; + polygon_type2 poly2; boost::geometry::read_wkt("POLYGON((0 0,0 5,5 5,5 0,0 0))", poly1); boost::geometry::read_wkt("POLYGON((0 0,0 5,5 5,5 0,0 0))", poly2); diff --git a/test/algorithms/crosses.cpp b/test/algorithms/crosses.cpp index 83709f700..8682936cb 100644 --- a/test/algorithms/crosses.cpp +++ b/test/algorithms/crosses.cpp @@ -22,23 +22,23 @@ template void test_pl() { - typedef bg::model::multi_point

mpt; + /*typedef bg::model::multi_point

mpt; typedef bg::model::linestring

ls; // not implemented yet - /*test_geometry("MULTIPOINT(0 0,1 1)", "LINESTRING(0 0,1 0,3 3)", true); + test_geometry("MULTIPOINT(0 0,1 1)", "LINESTRING(0 0,1 0,3 3)", true); test_geometry("MULTIPOINT(0 0,1 1)", "LINESTRING(0 0,1 1,3 3)", false);*/ } template void test_pa() { - typedef bg::model::multi_point

mpt; + /*typedef bg::model::multi_point

mpt; typedef bg::model::polygon

poly; typedef bg::model::multi_polygon mpoly; // not implemented yet - /*test_geometry("MULTIPOINT(0 0,6 6)", "POLYGON((0 0,0 5,5 5,5 0,0 0))", true); + test_geometry("MULTIPOINT(0 0,6 6)", "POLYGON((0 0,0 5,5 5,5 0,0 0))", true); test_geometry("MULTIPOINT(0 0,1 1)", "POLYGON((0 0,0 5,5 5,5 0,0 0))", false);*/ } diff --git a/test/algorithms/distance.cpp b/test/algorithms/distance.cpp index e8384670e..967f42054 100644 --- a/test/algorithms/distance.cpp +++ b/test/algorithms/distance.cpp @@ -114,7 +114,6 @@ template void test_distance_segment() { 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); P s2; bg::set<0>(s2, 4); bg::set<1>(s2, 4); diff --git a/test/algorithms/equals.cpp b/test/algorithms/equals.cpp index 4c972752d..1ee21ec22 100644 --- a/test/algorithms/equals.cpp +++ b/test/algorithms/equals.cpp @@ -108,7 +108,7 @@ void test_all() typedef bg::model::box

box; typedef bg::model::ring

ring; typedef bg::model::polygon

polygon; - typedef bg::model::linestring

linestring; + //typedef bg::model::linestring

linestring; std::string case_p1 = "POLYGON((0 0,0 2,2 2,0 0))"; diff --git a/test/algorithms/intersection.cpp b/test/algorithms/intersection.cpp index 8a76473f3..cefdb8ec9 100644 --- a/test/algorithms/intersection.cpp +++ b/test/algorithms/intersection.cpp @@ -19,6 +19,8 @@ // Test which would fail then are disabled automatically // #define BOOST_GEOMETRY_NO_ROBUSTNESS +#include + #include #include @@ -341,7 +343,7 @@ void test_point_output() typedef bg::model::linestring

linestring; typedef bg::model::polygon

polygon; typedef bg::model::box

box; - typedef bg::model::segment

segment; + //typedef bg::model::segment

segment; test_point_output(simplex_normal[0], simplex_normal[1], 6); test_point_output("box(1 1,6 4)", simplex_normal[0], 4); @@ -411,6 +413,7 @@ void test_all() typedef bg::model::polygon polygon_ccw; typedef bg::model::polygon polygon_open; typedef bg::model::polygon polygon_ccw_open; + boost::ignore_unused(); std::string clip = "box(2 2,8 8)"; diff --git a/test/algorithms/overlay/get_turns.cpp b/test/algorithms/overlay/get_turns.cpp index c9a45521b..3a3ab3620 100644 --- a/test/algorithms/overlay/get_turns.cpp +++ b/test/algorithms/overlay/get_turns.cpp @@ -195,9 +195,6 @@ void test_all() typedef bg::model::linestring

linestring; typedef bg::model::box

box; - // Expected count, average x, average y - typedef boost::tuple Tuple; - #ifdef BOOST_GEOMETRY_DEBUG_INTERSECTION std::cout << string_from_type::name() << std::endl; #endif @@ -344,8 +341,6 @@ void test_ccw() { typedef bg::model::point P; typedef bg::model::polygon polygon; - typedef boost::tuple Tuple; - test_get_turns::apply("ccw_1", 6, @@ -362,7 +357,6 @@ void test_open() { typedef bg::model::point P; typedef bg::model::polygon polygon; - typedef boost::tuple Tuple; test_get_turns::apply("open_1", 6, diff --git a/test/algorithms/overlay/self_intersection_points.cpp b/test/algorithms/overlay/self_intersection_points.cpp index b8c7969c8..24c51df57 100644 --- a/test/algorithms/overlay/self_intersection_points.cpp +++ b/test/algorithms/overlay/self_intersection_points.cpp @@ -164,10 +164,9 @@ void test_self_overlay(std::string const& case_id, T const& expected, template -void test_self_all() +void test_self_poly() { typedef bg::model::polygon

polygon; - typedef bg::model::linestring

linestring; // Just a normal polygon test_self_overlay("1", 0, @@ -255,6 +254,12 @@ void test_self_all() test_self_overlay("ggl_list_2013_11_06_joan", 0, ggl_list_2013_11_06_joan); test_self_overlay("ggl_list_20131119_james", 0, ggl_list_20131119_james[0]); +} + +template +void test_self_ls() +{ + //typedef bg::model::linestring

linestring; // Same case - but if this is a linestring. // TODO: this does not compile yet, but it should return 1 intersection point at the "closing" point @@ -262,6 +267,12 @@ void test_self_all() // test_self_overlay("ggl_list_2013_11_06_joan_linestring", 1, ggl_list_2013_11_06_joan_linestring); } +template +void test_self_all() +{ + test_self_poly

(); + test_self_ls

(); +} int test_main(int, char* []) { diff --git a/test/algorithms/overlay/traverse.cpp b/test/algorithms/overlay/traverse.cpp index 454e3791b..1fb7123b2 100644 --- a/test/algorithms/overlay/traverse.cpp +++ b/test/algorithms/overlay/traverse.cpp @@ -423,7 +423,7 @@ void test_all(bool test_self_tangencies = true, bool test_mixed = false) typedef bg::model::point P; typedef bg::model::polygon

polygon; - typedef bg::model::box

box; + //typedef bg::model::box

box; // 1-6 test_traverse::apply("1", 1, 5.4736, case_1[0], case_1[1]); diff --git a/test/algorithms/remove_spikes.cpp b/test/algorithms/remove_spikes.cpp index 2545e10ba..f4c0a21dc 100644 --- a/test/algorithms/remove_spikes.cpp +++ b/test/algorithms/remove_spikes.cpp @@ -101,9 +101,12 @@ void test_geometry(std::string const& id, std::string const& wkt, template void test_polygons() { - typedef bg::model::ring

ring; + typedef bg::model::ring ring; typedef bg::model::polygon polygon; + test_geometry("box", + "POLYGON((0 0,0 4,4 4,4 0,0 0))", + 16, 16); test_geometry("box", "POLYGON((0 0,0 4,4 4,4 0,0 0))", 16, 16); @@ -166,7 +169,6 @@ void test_polygons() template void test_multi_polygons() { - typedef bg::model::ring

ring; typedef bg::model::polygon polygon; typedef bg::model::multi_polygon multi_polygon; diff --git a/test/algorithms/test_difference.hpp b/test/algorithms/test_difference.hpp index 41e084aac..4520cd311 100644 --- a/test/algorithms/test_difference.hpp +++ b/test/algorithms/test_difference.hpp @@ -12,9 +12,11 @@ #include #include -#include #include +#include +#include + #include #include @@ -90,9 +92,10 @@ void test_difference(std::string const& caseid, G1 const& g1, G2 const& g2, double percentage = 0.0001, bool sym = false) { - std::vector clip; - typedef typename bg::coordinate_type::type coordinate_type; + boost::ignore_unused(); + + std::vector clip; if (sym) { diff --git a/test/algorithms/test_intersection.hpp b/test/algorithms/test_intersection.hpp index 82374cbd8..53db6d8c1 100644 --- a/test/algorithms/test_intersection.hpp +++ b/test/algorithms/test_intersection.hpp @@ -12,6 +12,7 @@ #include #include +#include #include #include @@ -47,6 +48,7 @@ check_result( typedef typename bg::coordinate_type::type coordinate_type; typedef typename bg::point_type::type point_type; + boost::ignore_unused(); typename bg::default_area_result::type length_or_area = 0; int n = 0; @@ -158,7 +160,6 @@ typename bg::default_area_result::type test_intersection(std::string const& std::cout << std::endl << "case " << caseid << std::endl; } - typedef typename bg::coordinate_type::type coordinate_type; typedef typename bg::point_type::type point_type; if (! debug) diff --git a/test/algorithms/test_intersection_linear_linear.hpp b/test/algorithms/test_intersection_linear_linear.hpp index ae079956b..9fbb71d08 100644 --- a/test/algorithms/test_intersection_linear_linear.hpp +++ b/test/algorithms/test_intersection_linear_linear.hpp @@ -124,7 +124,7 @@ private: static inline void base_test_all(Geometry1 const& geometry1, Geometry2 const& geometry2) { - typedef typename boost::range_value::type LineString; + //typedef typename boost::range_value::type LineString; typedef typename bg::point_type::type Point; typedef bg::model::multi_point multi_point; diff --git a/test/algorithms/test_set_ops_pl_pl.hpp b/test/algorithms/test_set_ops_pl_pl.hpp index 607592e82..28c20423a 100644 --- a/test/algorithms/test_set_ops_pl_pl.hpp +++ b/test/algorithms/test_set_ops_pl_pl.hpp @@ -190,8 +190,6 @@ private: MP const& mp_expected, std::string const& case_id) { - typedef typename boost::range_value::type Point; - MultiPoint mp_output; set_op::apply(geometry1, geometry2, mp_output); diff --git a/test/algorithms/test_simplify.hpp b/test/algorithms/test_simplify.hpp index b3c64ba56..4f67cade3 100644 --- a/test/algorithms/test_simplify.hpp +++ b/test/algorithms/test_simplify.hpp @@ -86,7 +86,6 @@ void test_geometry(std::string const& wkt, std::string const& expected, double d // Check using user-specified strategy typedef typename bg::point_type::type point_type; - typedef typename bg::cs_tag::type tag; typedef bg::strategy::distance::projected_point strategy; typedef bg::strategy::simplify::douglas_peucker < diff --git a/test/algorithms/test_union.hpp b/test/algorithms/test_union.hpp index 1f878ed02..2c1868ef2 100644 --- a/test/algorithms/test_union.hpp +++ b/test/algorithms/test_union.hpp @@ -13,6 +13,7 @@ #include +#include #include #include @@ -42,6 +43,8 @@ void test_union(std::string const& caseid, G1 const& g1, G2 const& g2, double percentage) { typedef typename bg::coordinate_type::type coordinate_type; + boost::ignore_unused(); + std::vector clip; #if defined(BOOST_GEOMETRY_DEBUG_ROBUSTNESS) diff --git a/test/algorithms/within.cpp b/test/algorithms/within.cpp index 824129a50..6abdce19b 100644 --- a/test/algorithms/within.cpp +++ b/test/algorithms/within.cpp @@ -106,7 +106,8 @@ void test_mixed_of() typedef boost::geometry::model::box box_type1; typedef boost::geometry::model::box box_type2; - polygon_type1 poly1, poly2; + polygon_type1 poly1; + polygon_type2 poly2; boost::geometry::read_wkt("POLYGON((0 0,0 5,5 5,5 0,0 0))", poly1); boost::geometry::read_wkt("POLYGON((0 0,0 5,5 5,5 0,0 0))", poly2); diff --git a/test/algorithms/within_pointlike_xxx.cpp b/test/algorithms/within_pointlike_xxx.cpp index 8d463cdbb..8558f33c9 100644 --- a/test/algorithms/within_pointlike_xxx.cpp +++ b/test/algorithms/within_pointlike_xxx.cpp @@ -111,7 +111,6 @@ void test_all() template void test_spherical() { - typedef typename bg::coordinate_type::type ct; bg::model::polygon wrangel; // SQL Server check (no geography::STWithin, so check with intersection trick) diff --git a/test/geometries/adapted.cpp b/test/geometries/adapted.cpp index d75972fde..fd3bb6419 100644 --- a/test/geometries/adapted.cpp +++ b/test/geometries/adapted.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -70,10 +71,10 @@ void test_geometry(G const& geometry, std::size_t expected_size = 0) typedef typename bg::point_type::type P; typedef typename bg::coordinate_type

::type C; + boost::ignore_unused(); // Check range-like behaviour BOOST_CHECK_EQUAL(boost::size(geometry), expected_size); - } template diff --git a/test/geometries/segment.cpp b/test/geometries/segment.cpp index 49d68d9f6..25165b6b7 100644 --- a/test/geometries/segment.cpp +++ b/test/geometries/segment.cpp @@ -16,6 +16,8 @@ #include +#include + #include #include @@ -52,7 +54,7 @@ void test_all() typedef typename bg::coordinate_type::type T; typedef typename bg::point_type::type SP; - + boost::ignore_unused(); //std::cout << sizeof(typename coordinate_type::type) << std::endl; @@ -63,6 +65,7 @@ void test_all() typedef typename bg::coordinate_type::type CT; typedef typename bg::point_type::type CSP; + boost::ignore_unused(); } diff --git a/test/multi/algorithms/multi_centroid.cpp b/test/multi/algorithms/multi_centroid.cpp index 25c66c085..aec62c2b7 100644 --- a/test/multi/algorithms/multi_centroid.cpp +++ b/test/multi/algorithms/multi_centroid.cpp @@ -15,6 +15,8 @@ #include +#include + #include #include #include @@ -35,6 +37,8 @@ template void test_2d(bool is_integer = false) { typedef typename bg::coordinate_type

::type ct; + boost::ignore_unused(); + #ifdef REPORT_RESULTS std::cout << std::endl << "type: " << typeid(ct).name() << " size: " << sizeof(ct) << std::endl; #endif diff --git a/test/multi/algorithms/multi_difference.cpp b/test/multi/algorithms/multi_difference.cpp index 49c8fae2c..310931b56 100644 --- a/test/multi/algorithms/multi_difference.cpp +++ b/test/multi/algorithms/multi_difference.cpp @@ -202,7 +202,7 @@ void test_areal_linear() template void test_all() { - typedef bg::model::box

box; + //typedef bg::model::box

box; typedef bg::model::ring

ring; typedef bg::model::polygon

polygon; typedef bg::model::multi_polygon multi_polygon; diff --git a/test/multi/algorithms/multi_envelope.cpp b/test/multi/algorithms/multi_envelope.cpp index dad5d0bc2..bafa5dc25 100644 --- a/test/multi/algorithms/multi_envelope.cpp +++ b/test/multi/algorithms/multi_envelope.cpp @@ -49,7 +49,7 @@ void test_2d() template void test_3d() { - typedef bg::model::multi_point

mp; + //typedef bg::model::multi_point

mp; } diff --git a/test/multi/algorithms/multi_intersection.cpp b/test/multi/algorithms/multi_intersection.cpp index 625ff1415..8dea0da23 100644 --- a/test/multi/algorithms/multi_intersection.cpp +++ b/test/multi/algorithms/multi_intersection.cpp @@ -183,7 +183,7 @@ void test_areal_linear() template void test_all() { - typedef bg::model::box

box; + //typedef bg::model::box

box; typedef bg::model::ring

ring; typedef bg::model::polygon

polygon; typedef bg::model::multi_polygon multi_polygon; diff --git a/test/policies/compare.cpp b/test/policies/compare.cpp index adb9f0309..3e4b1b021 100644 --- a/test/policies/compare.cpp +++ b/test/policies/compare.cpp @@ -32,7 +32,6 @@ template inline std::string coordinates(Container const& points) { std::ostringstream out; - typedef typename boost::range_value::type point_type; for (typename boost::range_const_iterator::type it = boost::begin(points); it != boost::end(points); ++it) @@ -132,8 +131,6 @@ void test_2d_compare() template void test_2d_sort() { - typedef typename bg::coordinate_type

::type ct; - std::vector

v; v.push_back(bg::make

(3, 1)); v.push_back(bg::make

(2, 3)); diff --git a/test/strategies/cross_track.cpp b/test/strategies/cross_track.cpp index 2fe639e30..1b02c8835 100644 --- a/test/strategies/cross_track.cpp +++ b/test/strategies/cross_track.cpp @@ -20,6 +20,8 @@ #include +#include + #include #include @@ -73,6 +75,9 @@ void test_distance( < bg::segment_tag, bg::point_tag, Point, Point >::type reversed_tags_cross_track_strategy_type; + + boost::ignore_unused(); } diff --git a/test/strategies/haversine.cpp b/test/strategies/haversine.cpp index 2d4f78550..9aaae3386 100644 --- a/test/strategies/haversine.cpp +++ b/test/strategies/haversine.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -94,6 +95,8 @@ void test_services() < bg::point_tag, bg::point_tag, P1, P2 >::type haversine_strategy_type; + + boost::ignore_unused(); } P1 p1; diff --git a/test/strategies/projected_point.cpp b/test/strategies/projected_point.cpp index 64e30f934..701c1a347 100644 --- a/test/strategies/projected_point.cpp +++ b/test/strategies/projected_point.cpp @@ -20,6 +20,8 @@ #include +#include + #include #include @@ -67,6 +69,9 @@ void test_services() < bg::segment_tag, bg::point_tag, PS, P >::type reversed_tags_projected_point_strategy_type; + + boost::ignore_unused(); } // 1: normal, calculate distance: diff --git a/test/strategies/pythagoras.cpp b/test/strategies/pythagoras.cpp index cedeb87cc..0f1249a8b 100644 --- a/test/strategies/pythagoras.cpp +++ b/test/strategies/pythagoras.cpp @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -126,6 +127,8 @@ void test_services() < bg::point_tag, bg::point_tag, P1, P2 >::type pythagoras_strategy_type; + + boost::ignore_unused(); } diff --git a/test/strategies/segment_intersection_collinear.cpp b/test/strategies/segment_intersection_collinear.cpp index 828b1fb37..8c25d5fe6 100644 --- a/test/strategies/segment_intersection_collinear.cpp +++ b/test/strategies/segment_intersection_collinear.cpp @@ -62,7 +62,6 @@ static void test_segment_intersection(std::string const& case_id, { boost::ignore_unused_variable_warning(case_id); - typedef typename bg::coordinate_type

::type coordinate_type; typedef bg::model::referring_segment segment_type; P p1, p2, p3, p4; @@ -124,7 +123,6 @@ static void test_segment_ratio(std::string const& case_id, { boost::ignore_unused_variable_warning(case_id); - typedef typename bg::coordinate_type

::type coordinate_type; typedef bg::model::referring_segment segment_type; P p1, p2, p3, p4; diff --git a/test/strategies/spherical_side.cpp b/test/strategies/spherical_side.cpp index c401d7220..a183a141b 100644 --- a/test/strategies/spherical_side.cpp +++ b/test/strategies/spherical_side.cpp @@ -91,8 +91,6 @@ void test_side(std::string const& case_id, Point const& p1, Point const& p2, Poi template void test_all() { - typedef std::pair pair; - Point amsterdam(5.9, 52.4); Point barcelona(2.0, 41.0); Point paris(2.0, 48.0); diff --git a/test/to_svg.hpp b/test/to_svg.hpp index 9f7c37749..529d265f0 100644 --- a/test/to_svg.hpp +++ b/test/to_svg.hpp @@ -239,12 +239,11 @@ inline void to_svg(G1 const& g1, G2 const& g2, std::string const& filename, bool { namespace bg = boost::geometry; - typedef typename bg::point_type::type P2; - typedef typename bg::point_type::type P1; + typedef typename bg::point_type::type mapper_point_type; std::ofstream svg(filename.c_str(), std::ios::trunc); - bg::svg_mapper mapper(svg, 500, 500); + bg::svg_mapper mapper(svg, 500, 500); mapper.add(g1); mapper.add(g2); diff --git a/test/util/calculation_type.cpp b/test/util/calculation_type.cpp index 33e7ce833..6e026676f 100644 --- a/test/util/calculation_type.cpp +++ b/test/util/calculation_type.cpp @@ -179,8 +179,10 @@ int test_main(int, char* []) // FP/int mixed test(); + test(); // integers + test(); test(); test(); test();