Compare commits

..

1 Commits

Author SHA1 Message Date
Beman Dawes ee98afae18 Release 1.41.0
[SVN r57747]
2009-11-18 14:58:26 +00:00
4 changed files with 9 additions and 10 deletions
@@ -6,10 +6,11 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
// *Preprocessed* version of the main "template_arity.hpp" header
// Preprocessed version of "boost/mpl/aux_/template_arity.hpp" header
// -- DO NOT modify by hand!
namespace boost { namespace mpl { namespace aux {
template< int N > struct arity_tag
{
typedef char (&type)[N + 1];
@@ -22,6 +23,7 @@ struct max_arity
{
BOOST_STATIC_CONSTANT(int, value =
( C6 > 0 ? C6 : ( C5 > 0 ? C5 : ( C4 > 0 ? C4 : ( C3 > 0 ? C3 : ( C2 > 0 ? C2 : ( C1 > 0 ? C1 : -1 ) ) ) ) ) )
);
};
@@ -81,7 +83,7 @@ template< typename F, int N >
struct template_arity_impl
{
BOOST_STATIC_CONSTANT(int, value =
sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
sizeof(arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
);
};
@@ -90,7 +92,9 @@ struct template_arity
{
BOOST_STATIC_CONSTANT(int, value = (
max_arity< template_arity_impl< F,1 >::value, template_arity_impl< F,2 >::value, template_arity_impl< F,3 >::value, template_arity_impl< F,4 >::value, template_arity_impl< F,5 >::value, template_arity_impl< F,6 >::value >::value
));
typedef mpl::int_<value> type;
};
+1 -1
View File
@@ -98,7 +98,7 @@ template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) >
struct template_arity_impl
{
BOOST_STATIC_CONSTANT(int, value =
sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
sizeof(arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
);
};
+1 -2
View File
@@ -2,7 +2,7 @@
#ifndef BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
#define BOOST_MPL_ZIP_VIEW_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2010
// Copyright Aleksey Gurtovoy 2000-2002
// Copyright David Abrahams 2000-2002
//
// Distributed under the Boost Software License, Version 1.0.
@@ -53,7 +53,6 @@ struct zip_view
public:
typedef nested_begin_end_tag tag;
typedef zip_view type;
typedef zip_iterator<first_ones_> begin;
typedef zip_iterator<last_ones_> end;
};
+1 -5
View File
@@ -1,5 +1,5 @@
// Copyright Aleksey Gurtovoy 2002-2010
// Copyright Aleksey Gurtovoy 2002-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -25,8 +25,6 @@
#include <boost/mpl/aux_/test.hpp>
#include <boost/type_traits/is_same.hpp>
MPL_TEST_CASE()
{
@@ -40,6 +38,4 @@ MPL_TEST_CASE()
, filter_view< range_c<int,10,30>, is_even<_> >
, equal_to<_,_>
> ));
MPL_ASSERT(( boost::is_same< zip_view<vector<> >, zip_view<vector<> >::type > ));
}