Made box/segment iterators random access

[SVN r64590]
This commit is contained in:
Barend Gehrels
2010-08-04 09:17:31 +00:00
parent 694c501f2e
commit e3406eada4
5 changed files with 26 additions and 4 deletions

View File

@@ -52,6 +52,12 @@ void test_geometry(std::string const& wkt, std::string const& expected)
out << " " << boost::geometry::get<0>(*it2) << boost::geometry::get<1>(*it2);
BOOST_CHECK_EQUAL(out.str(), expected);
}
{
// Check random access behaviour
int const n = boost::size(range);
BOOST_CHECK_EQUAL(n, 2);
}
}