// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2014. // Modifications copyright (c) 2014 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include #include #include #include BOOST_GEOMETRY_REGISTER_C_ARRAY_CS(cs::cartesian) BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian) BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED(std::vector) BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED(std::deque) template void test_geometry() { BOOST_CHECK_EQUAL(typeid(typename bg::tag::type).name(), typeid(Expected).name()); static const bool is_same = boost::is_same::type, Expected>::value; BOOST_CHECK(is_same); } template void test_all() { test_geometry(); test_geometry

(); test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry , bg::linestring_tag>(); test_geometry *&, bg::linestring_tag>(); test_geometry , bg::ring_tag>(); test_geometry , bg::polygon_tag>(); test_geometry , bg::box_tag>(); test_geometry , bg::segment_tag>(); test_geometry , bg::segment_tag>(); test_geometry, bg::linestring_tag>(); test_geometry, bg::linestring_tag>(); } int test_main(int, char* []) { test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry, bg::point_tag>(); test_geometry, bg::point_tag>(); test_all, 2 >(); test_all, 2 >(); test_all, 2 >(); return 0; }