Boost logo

Boost Users :

From: Tarjei Knapstad (tarjeik_at_[hidden])
Date: 2003-05-16 03:32:27


On Fri, 2003-05-16 at 10:09, Tarjei Knapstad wrote:
> I get some weird error messages which I don't really understand when I
> tried using mpl::pop_back today. The following example (more or less an
> exact copy of the one in the documentation):
>
> ------------------ start code -----------------
>
> #include <boost/mpl/list.hpp>
> #include <boost/mpl/pop_back.hpp>
>
> using namespace boost::mpl;
>
> void f()
> {
> typedef list<int, double>::type ListType;
> typedef pop_back<ListType>::type PoppedList;
> }
>
> ------------------ end code ----------------------
>

Just did a bit more testing. pop_front works without a hitch, and so
does the "equivalent of" method for pop_back i.e.:

typedef erase< ListType, prior< end<ListType>::type >::type >::type
        PoppedList;

So, problem solved for now, but I'd still like to use pop_back and know
why it failed...

Sincerely,

--
Tarjei

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