-Made closeable_view and reversible_view metafunctions, defining itself or a Boost.Range reversed_range or a closing_view

[SVN r67187]
This commit is contained in:
Barend Gehrels
2010-12-12 15:48:45 +00:00
parent 625b25a5ec
commit 72e9574bf0
2 changed files with 33 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ void test_non_geometry()
typedef bg::closeable_view
<
std::vector<int> const, true
> view_type;
>::type view_type;
std::vector<int> v;
v.push_back(1);
@@ -79,7 +79,7 @@ void test_non_geometry()
template <bool Close, typename Range>
void test_optionally_closing(Range const& range, std::string const& expected)
{
typedef bg::closeable_view<Range const, Close> view_type;
typedef bg::closeable_view<Range const, Close>::type view_type;
typedef typename boost::range_iterator<view_type const>::type iterator;
view_type view(range);