Boost logo

Boost :

From: Andreas Pokorny (andreas.pokorny_at_[hidden])
Date: 2005-12-02 17:45:05


On Fri, Dec 02, 2005 at 12:11:32PM -0800, Eric Niebler <eric_at_[hidden]> wrote:
>
> Andreas Pokorny wrote:
> > Hi,
> > The default implementation of boost::fusion::pair<first,second> only stores
> > an instance of second. I might need a fusion::pair which does not store
> > that instance either,
>
>
> If you want a map with *no* runtime data, then you should use
> mpl::map<>, not fusion::map<>. mpl::map<> uses mpl::pair<>, which has no
> runtime data. (Caveat: mpl::map is broken in more than one respect at
> the moment. Hopefully, it'll be fixed soon.)

Ah, I could write an interleaved map that splits the pair sequence into
runtime and compile time info holders.
How is mpl::map broken?

Regards,
Andreas Pokorny


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk