
On Sat, Feb 23, 2013 at 9:38 PM, Niitsuma Hirotaka < hirotaka.niitsuma@gmail.com> wrote:
Also: remove the ::type from the fold<> expression. Works for me after that (and the fix with adding the ::type on the definition of my_max). I would think you would've gotten a compiler error at this point but, meh.
Thank you for your advice. However with gcc 4.6.3, that cause compiler error.
Sorry, I think I inadvertently fixed a 3rd error in your original post
(accessing ::type on the mpl::max invocation) when I copied your code. The
following works for me on MSVC9:
--------
#include
::type r2; BOOST_MPL_ASSERT(( boost::is_same< r2, mpl::integral_c
> ));
typedef mpl::lambda< mpl::fold< mpl::_1 , mpl::front< mpl::_1 > , my_max
::type my_max_types;
typedef my_max_types::apply<
mpl::vector_c