Boost logo

Boost Users :

From: Andriy Tylychko (mail.ru) (telya_at_[hidden])
Date: 2006-07-23 13:17:56


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_at_[hidden]

 

 



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net