
6 Apr
2008
6 Apr
'08
4:03 p.m.
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.