Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60888 - in trunk: boost/mpl libs/mpl/test
From: agurtovoy_at_[hidden]
Date: 2010-03-28 10:23:39


Author: agurtovoy
Date: 2010-03-28 10:23:38 EDT (Sun, 28 Mar 2010)
New Revision: 60888
URL: http://svn.boost.org/trac/boost/changeset/60888

Log:
Fix for #1992
Text files modified:
   trunk/boost/mpl/zip_view.hpp | 3 ++-
   trunk/libs/mpl/test/zip_view.cpp | 6 +++++-
   2 files changed, 7 insertions(+), 2 deletions(-)

Modified: trunk/boost/mpl/zip_view.hpp
==============================================================================
--- trunk/boost/mpl/zip_view.hpp (original)
+++ trunk/boost/mpl/zip_view.hpp 2010-03-28 10:23:38 EDT (Sun, 28 Mar 2010)
@@ -2,7 +2,7 @@
 #ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
 #define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
 
-// Copyright Aleksey Gurtovoy 2000-2002
+// Copyright Aleksey Gurtovoy 2000-2010
 // Copyright David Abrahams 2000-2002
 //
 // Distributed under the Boost Software License, Version 1.0.
@@ -53,6 +53,7 @@
     
  public:
     typedef nested_begin_end_tag tag;
+ typedef zip_view type;
     typedef zip_iterator<first_ones_> begin;
     typedef zip_iterator<last_ones_> end;
 };

Modified: trunk/libs/mpl/test/zip_view.cpp
==============================================================================
--- trunk/libs/mpl/test/zip_view.cpp (original)
+++ trunk/libs/mpl/test/zip_view.cpp 2010-03-28 10:23:38 EDT (Sun, 28 Mar 2010)
@@ -1,5 +1,5 @@
 
-// Copyright Aleksey Gurtovoy 2002-2004
+// Copyright Aleksey Gurtovoy 2002-2010
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
@@ -25,6 +25,8 @@
 
 #include <boost/mpl/aux_/test.hpp>
 
+#include <boost/type_traits/is_same.hpp>
+
 
 MPL_TEST_CASE()
 {
@@ -38,4 +40,6 @@
         , filter_view< range_c<int,10,30>, is_even<_> >
         , equal_to<_,_>
> ));
+
+ MPL_ASSERT(( boost::is_same< zip_view<vector<> >, zip_view<vector<> >::type > ));
 }


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