|
Boost : |
From: Sergei Politov (spolitov_at_[hidden])
Date: 2008-04-06 12:03:45
Steven Watanabe <watanabesj <at> gmail.com> writes:
>
> AMDG
>
> No. make_vector doesn't have to know about mpl::_.
> map_gen has to use mpl::apply to make lambda expressions work.
Ok, I will check it.
> It's already pretty easy to make such a map using mpl sequences.
>
> #include <boost/fusion/container/map.hpp>
> #include <boost/fusion/include/convert.hpp>
> ..................
> fusion::at_key<char>(map).push_back(1.4);
> fusion::at_key<int>(map).push_back(1.4);
> }
The problem that it is limited by max size of fusion vector.
I'm using fusion cons and alternative map class, that avoids this problem.
The map_gen itself, without alternative map class is pretty small.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk