diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/geometry/test/algorithms/detail/sections/range_by_section.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/geometry/test/algorithms/detail/sections/range_by_section.cpp')
-rw-r--r-- | libs/geometry/test/algorithms/detail/sections/range_by_section.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/geometry/test/algorithms/detail/sections/range_by_section.cpp b/libs/geometry/test/algorithms/detail/sections/range_by_section.cpp index d7cadde30..1263ba5ed 100644 --- a/libs/geometry/test/algorithms/detail/sections/range_by_section.cpp +++ b/libs/geometry/test/algorithms/detail/sections/range_by_section.cpp @@ -20,7 +20,7 @@ #include <boost/geometry/geometries/geometries.hpp> #include <boost/geometry/geometries/point_xy.hpp> #include <boost/geometry/io/wkt/wkt.hpp> - +#include <boost/geometry/util/condition.hpp> template <int DimensionCount, bool Reverse, typename Geometry> @@ -30,8 +30,10 @@ void test_sectionalize(std::string const /*caseid*/, Geometry const& geometry, s typedef bg::model::box<point> box; typedef bg::sections<box, DimensionCount> sections; + typedef boost::mpl::vector_c<std::size_t, 0> dim2; + sections s; - bg::sectionalize<Reverse>(geometry, s); + bg::sectionalize<Reverse, dim2>(geometry, bg::detail::no_rescale_policy(), s); BOOST_CHECK_EQUAL(s.size(), section_count); @@ -71,7 +73,7 @@ void test_sectionalize(std::string const& caseid, std::string const& wkt, { Geometry geometry; bg::read_wkt(wkt, geometry); - if (bg::closure<Geometry>::value == bg::open) + if ( BOOST_GEOMETRY_CONDITION( bg::closure<Geometry>::value == bg::open ) ) { geometry.outer().resize(geometry.outer().size() - 1); } |