typedef boost::bimap<boost::bimaps::vector_of<int>, boost::bimaps::vector_of<float> > bimap_t;
bimap_t mp;
mp.left.insert(bimap_t::left_value_type(2, 2.0f));
Why doesn't this work ? and gives compiler error on insert()
It cannot find any insert()
that takes bimap_t::left_value_type
as argument.
However boost::bimap<boost::bimaps::set_of<int>, boost::bimaps::vector_of<float> >
works. looks like the left cannot be vector. but as its bi directional it shouldn't matter