// Boost.Geometry (aka GGL, Generic Geometry Library) test file // // Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands // Copyright Bruno Lalande 2008, 2009 // 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 #include #include #include #include template void test_geometry() { G geometry; typedef typename boost::geometry::point_type::type P; boost::geometry::append(geometry, boost::geometry::make_zero

()); BOOST_CHECK_EQUAL(boost::geometry::num_points(geometry), 1); boost::geometry::clear(geometry); BOOST_CHECK_EQUAL(boost::geometry::num_points(geometry), 0); //P p = boost::range::front(geometry); } template void test_all() { test_geometry >(); test_geometry >(); test_geometry >(); test_geometry >(); test_geometry >(); //test_geometry >(); } int test_main(int, char* []) { test_all(); test_all >(); test_all >(); test_all >(); return 0; }