Boost logo

Boost Users :

Subject: Re: [Boost-users] [bimap] Creating a bimap fom a std::map
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2009-11-25 13:54:12


2009/11/25 Edward Diener <eldiener_at_[hidden]>

> Yes, of course. See above. I just do not agree that not providing the
> obvious constructor is good because it "maintains symmetry". Many things in
> programming are good because they provide ease-of-use and my suggestion is
> an obvious case of that.
>

In my opinion the constructor you propose is not obvious, but rather very
subtle. Explicit 'left' or 'right' during the conversion from std::map makes
the intent more explicit and thus improves readability.

I do understand that it might be a matter of personal preference.

Roman Perepelitsa.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net