
On 11/19/06, Sohail Somani <s.somani@fincad.com> wrote:
Could you mention how this is different from using multi index to do the same thing?
http://www.boost.org/libs/multi_index/doc/examples.html#example4
I'd expect a bimap to be some sort of typedef Bad form to reply to my own email, but anyway:
I've now gone through a bit of the thread you referenced below. It seems like the biggest benefit is an easier interface. Given that this is a good enough reason for most people, would it not be possible to share code with multi index? Perhaps by private inheritance or aggregation?
I'd suspect that there is likely to be code duplication otherwise.
Boost.MultiIndex is the core of Boost.Bimap. There is no code duplication. Please read this part of the docs: http://cablemodem.fibertel.com.ar/mcape/boost/libs/bimap/boost_bimap/bimap_a... Best Regards Matias Capeletto