Hi.

 

Reading “C++ Template Metaprogramming” book:

Though not extensible, range_c supports pop_front and pop_back, because contracting a range is easy

But following code doesn’t work (at least using MSVC 8.0):

 

#include <boost/mpl/range_c.hpp>

#include <boost/mpl/pop_back.hpp>

using namespace boost::mpl;

typedef range_c<int, 0, 1> r;

typedef pop_back<r>::type p;

 

Can anybody explain?

 

Thank you in advance,

Andriy Tylychko,

telya@mail.ru