diff --git a/include/boost/mpl/zip_view.hpp b/include/boost/mpl/zip_view.hpp index 4dc2d84..d709230 100644 --- a/include/boost/mpl/zip_view.hpp +++ b/include/boost/mpl/zip_view.hpp @@ -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 @@ struct zip_view public: typedef nested_begin_end_tag tag; + typedef zip_view type; typedef zip_iterator begin; typedef zip_iterator end; }; diff --git a/test/zip_view.cpp b/test/zip_view.cpp index c235034..a8d9b03 100644 --- a/test/zip_view.cpp +++ b/test/zip_view.cpp @@ -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 +#include + MPL_TEST_CASE() { @@ -38,4 +40,6 @@ MPL_TEST_CASE() , filter_view< range_c, is_even<_> > , equal_to<_,_> > )); + + MPL_ASSERT(( boost::is_same< zip_view >, zip_view >::type > )); }