[phobos] phobos commit, revision 1740

Andrei Alexandrescu andrei at erdani.com
Thu Jul 8 23:17:22 PDT 2010


On 07/09/2010 12:25 AM, Jonathan M Davis wrote:
>> Also added specialization of Array for bool that stores one bit per
>> element.
>
> _Please_ tell me that's optional in some manner. I don't know
> _anyone_ who uses vector<bool>  in C++ _precisely_ because of this
> optimization. I don't think that I've ever talked to anyone who
> thought that vector<bool>  being special in that manner was a good
> thing.

I am well aware of vector<bool>'s problems and designed Array!bool very 
carefully to avoid each and all of them.

Andrei


More information about the phobos mailing list