diff --git a/doc/paper/src/lambda.sgml b/doc/paper/src/lambda.sgml index e778903..74765cd 100644 --- a/doc/paper/src/lambda.sgml +++ b/doc/paper/src/lambda.sgml @@ -52,7 +52,7 @@ Inline composition is very appealing syntactically when one deals with metafunct , mpl::int_c<16> > + mpl::less< mpl::sizeof_<_1>, mpl::int_c<16> > , boost::is_same<_1,_2> > expr; @@ -71,7 +71,7 @@ The alternative way to write an equivalent of the above metafunction class would typedef bind< mpl::meta_fun2 , mpl::bind< mpl::meta_fun2 - , mpl::bind< mpl::meta_fun1,_1 > + , mpl::bind< mpl::meta_fun1,_1 > , mpl::int_c<16> > , mpl::bind< mpl::meta_fun2,_1,_2 > @@ -89,7 +89,7 @@ For its own metafunctions (algorithms, primitives, etc.), &MPL; enables one to w - , mpl::bind< mpl::less<>, mpl::bind,_1>, mpl::int_c<16> > + , mpl::bind< mpl::less<>, mpl::bind,_1>, mpl::int_c<16> > , mpl::bind< mpl::make_f2, _1,_2 > > func; ]]> @@ -112,7 +112,7 @@ struct my_predicate }; typedef mpl::logical_or< - mpl::less< mpl::size_of<_>,mpl::int_c<16> > + mpl::less< mpl::sizeof_<_>,mpl::int_c<16> > , mpl::bind< my_predicate,_,_ > // here > expr; ]]> @@ -123,7 +123,7 @@ To bind something to one of its arguments (or change the order of parameters), t ,mpl::int_c<16> > + mpl::less< mpl::sizeof_<_>,mpl::int_c<16> > , mpl::bind::type // here > expr; ]]> @@ -134,7 +134,7 @@ or ,mpl::int_c<16> > + mpl::less< mpl::sizeof_<_>,mpl::int_c<16> > , my_predicate::apply // here > expr; ]]> diff --git a/doc/paper/src/sequences.sgml b/doc/paper/src/sequences.sgml index 1cc0b4f..826f329 100644 --- a/doc/paper/src/sequences.sgml +++ b/doc/paper/src/sequences.sgml @@ -183,7 +183,7 @@ struct largest typedef typename mpl::max_element< mpl::transform_view< Sequence - , mpl::size_of<_> + , mpl::sizeof_<_> > >::type type; }; @@ -201,8 +201,8 @@ struct largest typedef typename mpl::max_element< Sequence mpl::less< - mpl::size_of<_1> - , mpl::size_of<_2> + mpl::sizeof_<_1> + , mpl::sizeof_<_2> > >::type iter; diff --git a/doc/ref/mpl_logo.jpg b/doc/ref/mpl_logo.jpg index 9a1481b..10b4978 100644 Binary files a/doc/ref/mpl_logo.jpg and b/doc/ref/mpl_logo.jpg differ diff --git a/preprocessed/src/list10.cpp b/preprocessed/src/list10.cpp deleted file mode 100644 index 0754874..0000000 --- a/preprocessed/src/list10.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list10.hpp" diff --git a/preprocessed/src/list10_c.cpp b/preprocessed/src/list10_c.cpp deleted file mode 100644 index e3ac6bb..0000000 --- a/preprocessed/src/list10_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list10_c.hpp" diff --git a/preprocessed/src/list20.cpp b/preprocessed/src/list20.cpp deleted file mode 100644 index 2f4ec33..0000000 --- a/preprocessed/src/list20.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list20.hpp" diff --git a/preprocessed/src/list20_c.cpp b/preprocessed/src/list20_c.cpp deleted file mode 100644 index ee65fb9..0000000 --- a/preprocessed/src/list20_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list20_c.hpp" diff --git a/preprocessed/src/list30.cpp b/preprocessed/src/list30.cpp deleted file mode 100644 index f208f02..0000000 --- a/preprocessed/src/list30.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list30.hpp" diff --git a/preprocessed/src/list30_c.cpp b/preprocessed/src/list30_c.cpp deleted file mode 100644 index 740ee28..0000000 --- a/preprocessed/src/list30_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list30_c.hpp" diff --git a/preprocessed/src/list40.cpp b/preprocessed/src/list40.cpp deleted file mode 100644 index e762c2a..0000000 --- a/preprocessed/src/list40.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list40.hpp" diff --git a/preprocessed/src/list40_c.cpp b/preprocessed/src/list40_c.cpp deleted file mode 100644 index 7a21bdd..0000000 --- a/preprocessed/src/list40_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list40_c.hpp" diff --git a/preprocessed/src/list50.cpp b/preprocessed/src/list50.cpp deleted file mode 100644 index fe96b41..0000000 --- a/preprocessed/src/list50.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list50.hpp" diff --git a/preprocessed/src/list50_c.cpp b/preprocessed/src/list50_c.cpp deleted file mode 100644 index 14df78c..0000000 --- a/preprocessed/src/list50_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/list/list50_c.hpp" diff --git a/preprocessed/src/lite_vector10.cpp b/preprocessed/src/lite_vector10.cpp deleted file mode 100644 index d55eb59..0000000 --- a/preprocessed/src/lite_vector10.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector10.hpp" diff --git a/preprocessed/src/lite_vector10_c.cpp b/preprocessed/src/lite_vector10_c.cpp deleted file mode 100644 index 315a82c..0000000 --- a/preprocessed/src/lite_vector10_c.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector10_c.hpp" diff --git a/preprocessed/src/lite_vector20.cpp b/preprocessed/src/lite_vector20.cpp deleted file mode 100644 index 7bed4b3..0000000 --- a/preprocessed/src/lite_vector20.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector20.hpp" diff --git a/preprocessed/src/lite_vector20_c.cpp b/preprocessed/src/lite_vector20_c.cpp deleted file mode 100644 index 79567d6..0000000 --- a/preprocessed/src/lite_vector20_c.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector20_c.hpp" diff --git a/preprocessed/src/lite_vector30.cpp b/preprocessed/src/lite_vector30.cpp deleted file mode 100644 index 187f201..0000000 --- a/preprocessed/src/lite_vector30.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector30.hpp" diff --git a/preprocessed/src/lite_vector30_c.cpp b/preprocessed/src/lite_vector30_c.cpp deleted file mode 100644 index 8c0ab5e..0000000 --- a/preprocessed/src/lite_vector30_c.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector30_c.hpp" diff --git a/preprocessed/src/lite_vector40.cpp b/preprocessed/src/lite_vector40.cpp deleted file mode 100644 index 0e1da21..0000000 --- a/preprocessed/src/lite_vector40.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector40.hpp" diff --git a/preprocessed/src/lite_vector40_c.cpp b/preprocessed/src/lite_vector40_c.cpp deleted file mode 100644 index 882e288..0000000 --- a/preprocessed/src/lite_vector40_c.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector40_c.hpp" diff --git a/preprocessed/src/lite_vector50.cpp b/preprocessed/src/lite_vector50.cpp deleted file mode 100644 index b30e146..0000000 --- a/preprocessed/src/lite_vector50.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector50.hpp" diff --git a/preprocessed/src/lite_vector50_c.cpp b/preprocessed/src/lite_vector50_c.cpp deleted file mode 100644 index 96ef271..0000000 --- a/preprocessed/src/lite_vector50_c.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#define BOOST_MPL_TYPEOF_BASED_VECTOR_IMPL -#include "boost/mpl/vector/vector50_c.hpp" diff --git a/preprocessed/src/vector10.cpp b/preprocessed/src/vector10.cpp deleted file mode 100644 index f8f3fec..0000000 --- a/preprocessed/src/vector10.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector10.hpp" diff --git a/preprocessed/src/vector10_c.cpp b/preprocessed/src/vector10_c.cpp deleted file mode 100644 index 31bdbf8..0000000 --- a/preprocessed/src/vector10_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector10_c.hpp" diff --git a/preprocessed/src/vector20.cpp b/preprocessed/src/vector20.cpp deleted file mode 100644 index c6f8138..0000000 --- a/preprocessed/src/vector20.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector20.hpp" diff --git a/preprocessed/src/vector20_c.cpp b/preprocessed/src/vector20_c.cpp deleted file mode 100644 index c5cef1e..0000000 --- a/preprocessed/src/vector20_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector20_c.hpp" diff --git a/preprocessed/src/vector30.cpp b/preprocessed/src/vector30.cpp deleted file mode 100644 index 86f9d98..0000000 --- a/preprocessed/src/vector30.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector30.hpp" diff --git a/preprocessed/src/vector30_c.cpp b/preprocessed/src/vector30_c.cpp deleted file mode 100644 index 724ae4f..0000000 --- a/preprocessed/src/vector30_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector30_c.hpp" diff --git a/preprocessed/src/vector40.cpp b/preprocessed/src/vector40.cpp deleted file mode 100644 index bc9610a..0000000 --- a/preprocessed/src/vector40.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector40.hpp" diff --git a/preprocessed/src/vector40_c.cpp b/preprocessed/src/vector40_c.cpp deleted file mode 100644 index 239e15e..0000000 --- a/preprocessed/src/vector40_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector40_c.hpp" diff --git a/preprocessed/src/vector50.cpp b/preprocessed/src/vector50.cpp deleted file mode 100644 index 302d43d..0000000 --- a/preprocessed/src/vector50.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector50.hpp" diff --git a/preprocessed/src/vector50_c.cpp b/preprocessed/src/vector50_c.cpp deleted file mode 100644 index a460f4b..0000000 --- a/preprocessed/src/vector50_c.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define BOOST_MPL_PREPROCESSING_MODE -#include "boost/mpl/vector/vector50_c.hpp" diff --git a/test/apply.cpp b/test/apply.cpp index 0e9b43d..7ae52c5 100644 --- a/test/apply.cpp +++ b/test/apply.cpp @@ -19,9 +19,8 @@ #include "boost/mpl/limits/arity.hpp" #include "boost/mpl/aux_/preprocessor/params.hpp" #include "boost/mpl/aux_/preprocessor/enum.hpp" -#include "boost/mpl/aux_/preprocessor/project1st.hpp" -#include "boost/preprocessor/repeat_2nd.hpp" +#include "boost/preprocessor/repeat.hpp" #include "boost/preprocessor/comma_if.hpp" #include "boost/preprocessor/dec.hpp" #include "boost/preprocessor/if.hpp" @@ -56,7 +55,7 @@ namespace mpl = boost::mpl; /**/ namespace aux { -BOOST_PP_REPEAT_2ND( +BOOST_PP_REPEAT( BOOST_MPL_METAFUNCTION_MAX_ARITY , APPLY_FUNC_DEF , unused @@ -98,14 +97,14 @@ BOOST_PP_REPEAT_2ND( int main() { - BOOST_PP_REPEAT_2ND( + BOOST_PP_REPEAT( BOOST_MPL_METAFUNCTION_MAX_ARITY , APPLY_TEST , MAKE_APPLY_N_NAME ) #if defined(BOOST_MPL_HAS_APPLY) - BOOST_PP_REPEAT_2ND( + BOOST_PP_REPEAT( BOOST_MPL_METAFUNCTION_MAX_ARITY , APPLY_TEST , MAKE_APPLY_NAME diff --git a/test/at.cpp b/test/at.cpp index c2a9dee..af7aebf 100644 --- a/test/at.cpp +++ b/test/at.cpp @@ -24,16 +24,16 @@ int main() { typedef mpl::vector10_c numbers; - BOOST_STATIC_ASSERT((mpl::at_c<0, numbers>::type::value == 9)); - BOOST_STATIC_ASSERT((mpl::at_c<1, numbers>::type::value == 8)); - BOOST_STATIC_ASSERT((mpl::at_c<2, numbers>::type::value == 7)); - BOOST_STATIC_ASSERT((mpl::at_c<3, numbers>::type::value == 6)); - BOOST_STATIC_ASSERT((mpl::at_c<4, numbers>::type::value == 5)); - BOOST_STATIC_ASSERT((mpl::at_c<5, numbers>::type::value == 4)); - BOOST_STATIC_ASSERT((mpl::at_c<6, numbers>::type::value == 3)); - BOOST_STATIC_ASSERT((mpl::at_c<7, numbers>::type::value == 2)); - BOOST_STATIC_ASSERT((mpl::at_c<8, numbers>::type::value == 1)); - BOOST_STATIC_ASSERT((mpl::at_c<9, numbers>::type::value == 0)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 9)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 8)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 7)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 6)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 5)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 4)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 3)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 2)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 1)); + BOOST_STATIC_ASSERT((mpl::at_c::type::value == 0)); return 0; } diff --git a/test/filter_view.cpp b/test/filter_view.cpp index e246011..62d59cd 100644 --- a/test/filter_view.cpp +++ b/test/filter_view.cpp @@ -18,7 +18,7 @@ #include "boost/mpl/transform_view.hpp" #include "boost/mpl/max_element.hpp" #include "boost/mpl/list.hpp" -#include "boost/mpl/size_of.hpp" +#include "boost/mpl/sizeof.hpp" #include "boost/type_traits/is_float.hpp" #include "boost/type_traits/is_same.hpp" #include "boost/static_assert.hpp" @@ -32,7 +32,7 @@ int main() typedef mpl::max_element< mpl::transform_view< mpl::filter_view< types,boost::is_float<_> > - , mpl::size_of<_> + , mpl::sizeof_<_> > >::type iter; diff --git a/test/for_each.cpp b/test/for_each.cpp index 090ad3a..b4b30f7 100644 --- a/test/for_each.cpp +++ b/test/for_each.cpp @@ -50,6 +50,7 @@ int main() typedef mpl::list types; mpl::for_each< types,mpl::make_identity<_> >(printer(std::cout)); +#if !defined(__BORLANDC__) || __BORLANDC__ != 0x560 typedef mpl::range_c numbers; std::vector v; mpl::for_each( @@ -58,6 +59,7 @@ int main() for (int i = 0; i < v.size(); ++i) assert(v[i] == i); +#endif return 0; } diff --git a/test/lambda.cpp b/test/lambda.cpp index 3807996..09c8683 100644 --- a/test/lambda.cpp +++ b/test/lambda.cpp @@ -19,7 +19,9 @@ #include "boost/mpl/lambda.hpp" #include "boost/mpl/int_c.hpp" #include "boost/mpl/bool_c.hpp" -#include "boost/mpl/size_of.hpp" +#include "boost/mpl/sizeof.hpp" +#include "boost/mpl/apply.hpp" + #include "boost/type_traits/is_same.hpp" #include "boost/type_traits/is_float.hpp" #include "boost/static_assert.hpp" @@ -35,43 +37,43 @@ int main() { using namespace mpl::placeholder; - // !(x == char) && !(x == double) && x convertible to int || size_of(x) > 8 + // !(x == char) && !(x == double) && x convertible to int || sizeof(x) > 8 typedef mpl::lambda< mpl::logical_or< mpl::logical_and< mpl::logical_not< boost::is_same<_1, char> > , mpl::logical_not< boost::is_float<_1> > > - , mpl::greater< mpl::size_of<_1>, mpl::int_c<8> > + , mpl::greater< mpl::sizeof_<_1>, mpl::int_c<8> > > >::type f1; - BOOST_STATIC_ASSERT(!f1::apply::type::value); - BOOST_STATIC_ASSERT(!f1::apply::type::value); - BOOST_STATIC_ASSERT(f1::apply::type::value); - BOOST_STATIC_ASSERT(f1::apply::type::value); + BOOST_STATIC_ASSERT((!mpl::apply1::type::value)); + BOOST_STATIC_ASSERT((!mpl::apply1::type::value)); + BOOST_STATIC_ASSERT((mpl::apply1::type::value)); + BOOST_STATIC_ASSERT((mpl::apply1::type::value)); // x == y || x == my || sizeof(x) == sizeof(y) typedef mpl::lambda< mpl::logical_or< boost::is_same<_1, _2> , boost::is_same<_2, my> - , mpl::equal_to< mpl::size_of<_1>, mpl::size_of<_2> > + , mpl::equal_to< mpl::sizeof_<_1>, mpl::sizeof_<_2> > > >::type f2; - BOOST_STATIC_ASSERT((!f2::apply::type::value)); - BOOST_STATIC_ASSERT((!f2::apply::type::value)); - BOOST_STATIC_ASSERT((!f2::apply::type::value)); - BOOST_STATIC_ASSERT((f2::apply::type::value)); - BOOST_STATIC_ASSERT((f2::apply::type::value)); - BOOST_STATIC_ASSERT((f2::apply::type::value)); + BOOST_STATIC_ASSERT((!mpl::apply2::type::value)); + BOOST_STATIC_ASSERT((!mpl::apply2::type::value)); + BOOST_STATIC_ASSERT((!mpl::apply2::type::value)); + BOOST_STATIC_ASSERT((mpl::apply2::type::value)); + BOOST_STATIC_ASSERT((mpl::apply2::type::value)); + BOOST_STATIC_ASSERT((mpl::apply2::type::value)); // bind <-> lambda interaction typedef mpl::lambda< mpl::less<_1,_2> >::type pred; typedef mpl::bind2< pred, _1, mpl::int_c<4> > f3; - BOOST_STATIC_ASSERT((f3::apply< mpl::int_c<3> >::type::value)); + BOOST_STATIC_ASSERT((mpl::apply1< f3,mpl::int_c<3> >::type::value)); return 0; } diff --git a/test/size_of.cpp b/test/size_of.cpp deleted file mode 100644 index b013944..0000000 --- a/test/size_of.cpp +++ /dev/null @@ -1,34 +0,0 @@ -//----------------------------------------------------------------------------- -// boost mpl/test/size_of.cpp source file -// See http://www.boost.org for updates, documentation, and revision history. -//----------------------------------------------------------------------------- -// -// Copyright (c) 2001-02 -// Aleksey Gurtovoy -// -// Permission to use, copy, modify, distribute and sell this software -// and its documentation for any purpose is hereby granted without fee, -// provided that the above copyright notice appears in all copies and -// that both the copyright notice and this permission notice appear in -// supporting documentation. No representations are made about the -// suitability of this software for any purpose. It is provided "as is" -// without express or implied warranty. - -#include "boost/mpl/size_of.hpp" -#include "boost/static_assert.hpp" - -namespace mpl = boost::mpl; - -struct my -{ - char a[100]; -}; - -int main() -{ - BOOST_STATIC_ASSERT(mpl::size_of::type::value == sizeof(char)); - BOOST_STATIC_ASSERT(mpl::size_of::type::value == sizeof(int)); - BOOST_STATIC_ASSERT(mpl::size_of::type::value == sizeof(double)); - BOOST_STATIC_ASSERT(mpl::size_of::type::value == sizeof(my)); - return 0; -} diff --git a/test/transform_view.cpp b/test/transform_view.cpp index 667448f..f9569ec 100644 --- a/test/transform_view.cpp +++ b/test/transform_view.cpp @@ -17,7 +17,7 @@ #include "boost/mpl/transform_view.hpp" #include "boost/mpl/max_element.hpp" #include "boost/mpl/list.hpp" -#include "boost/mpl/size_of.hpp" +#include "boost/mpl/sizeof.hpp" #include "boost/static_assert.hpp" namespace mpl = boost::mpl; @@ -27,7 +27,7 @@ int main() { typedef mpl::list types; typedef mpl::max_element< - mpl::transform_view< types, mpl::size_of<_> > + mpl::transform_view< types, mpl::sizeof_<_> > >::type iter; BOOST_STATIC_ASSERT(iter::type::value == 50);