Boost logo

Boost Users :

From: Scott Meyers (usenet_at_[hidden])
Date: 2007-03-28 18:47:31


Ovanes Markarian wrote:
> mpl::insert is an own type but you need the new sequence type with is
> accessed via:
> mpl::insert<...>::type

Thanks very much. When I change the corresponding to code to:

   typedef mpl::insert<Constraints,
                       mpl::end<Constraints>,
                       Base>::type BaseClasses;

then Base is inserted, but the resulting sequence has only A and Base in it, not
A and B and Base, i.e., the type B is somehow being lost. Any idea why?

Also, I'll be honest: I don't know when to use ::type and when not to. Is
there a good description somewhere (either online or in the MPL book) that will
clarify the situation for me?

Thanks,

Scott


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