
On Wed, Nov 25, 2009 at 6:08 PM, Edward Diener
Matias Capeletto wrote:
... you have just wrote down here why it is not a good idea to provide this constructor. Not only it breaks the symmetry, the real problem is that following your idea of automatic conversion between pairs and relations we bump into ambiguities. Imagine you now have a bimap, and you use your constructor with a map... it is not clear which side is the left and which side is the right.
Are you saying that if I insert map items on the left side of a bimap I can not access them from the right side of the bimap, or vice versa ? That would seem to make the bimap fairly useless. If not, in your example of bimap and map it should make no difference whatever into which side the map pairs are originally inserted.
I am not saying that.
The problem is that If you have a std::map