Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67188 - sandbox/geometry/libs/geometry/test/util
From: barend.gehrels_at_[hidden]
Date: 2010-12-12 11:38:09


Author: barendgehrels
Date: 2010-12-12 11:38:05 EST (Sun, 12 Dec 2010)
New Revision: 67188
URL: http://svn.boost.org/trac/boost/changeset/67188

Log:
Updates for changes in closeable_view / fixed reversible_closeable.cpp for all but one issue
Text files modified:
   sandbox/geometry/libs/geometry/test/util/closeable_view.cpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/geometry/libs/geometry/test/util/closeable_view.cpp
==============================================================================
--- sandbox/geometry/libs/geometry/test/util/closeable_view.cpp (original)
+++ sandbox/geometry/libs/geometry/test/util/closeable_view.cpp 2010-12-12 11:38:05 EST (Sun, 12 Dec 2010)
@@ -27,7 +27,7 @@
 {
     typedef bg::closeable_view
         <
- std::vector<int> const, true
+ std::vector<int> const, bg::open
>::type view_type;
 
     std::vector<int> v;
@@ -76,10 +76,10 @@
 }
 
 
-template <bool Close, typename Range>
+template <bg::closure_selector Closure, typename Range>
 void test_optionally_closing(Range const& range, std::string const& expected)
 {
- typedef bg::closeable_view<Range const, Close>::type view_type;
+ typedef bg::closeable_view<Range const, Closure>::type view_type;
     typedef typename boost::range_iterator<view_type const>::type iterator;
 
     view_type view(range);
@@ -103,8 +103,8 @@
     Geometry geo;
     bg::read_wkt(wkt, geo);
 
- test_optionally_closing<false>(geo, expected_false);
- test_optionally_closing<true>(geo, expected_true);
+ test_optionally_closing<bg::closed>(geo, expected_false);
+ test_optionally_closing<bg::open>(geo, expected_true);
 }
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk