$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.