// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // 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 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::coordinate_system::type).name(), typeid(Expected).name()); } template void test_all() { test_geometry(); test_geometry

(); test_geometry , Expected>(); test_geometry , Expected>(); test_geometry , Expected>(); test_geometry , Expected>(); test_geometry , Expected>(); test_geometry , Expected>(); test_geometry, Expected>(); test_geometry, Expected>(); } int test_main(int, char* []) { // Because of the included headerfiles, there are always cartesian test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry(); test_geometry(); // Because of the included headerfiles, there are always cartesian test_geometry, bg::cs::cartesian>(); test_geometry, bg::cs::cartesian>(); // Test cartesian test_all, bg::cs::cartesian>(); test_all, bg::cs::cartesian>(); test_all, bg::cs::cartesian>(); // Test spherical test_all >, bg::cs::spherical >(); test_all >, bg::cs::spherical >(); test_all >, bg::cs::spherical >(); test_all >, bg::cs::spherical >(); test_all >, bg::cs::spherical >(); test_all >, bg::cs::spherical >(); // Test other test_all >, bg::cs::polar >(); test_all >, bg::cs::geographic >(); return 0; }