[phobos] phobos commit, revision 1740

Jonathan M Davis jmdavisprog at gmail.com
Fri Jul 9 00:19:01 PDT 2010


On Thursday 08 July 2010 23:48:06 Andrei Alexandrescu wrote:
> On 07/09/2010 01:28 AM, Sean Kelly wrote:
> > On Jul 8, 2010, at 10:25 PM, 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.
> > 
> > Looks like this optimization is largely invisible to the user, unlike
> > vector<bool>, and intended largely for space saving.  If you want a
> > plain old BitArray there's one in std.bitmanip.
> 
> Yah. The issues are subtle, I plan to write an entire article about them.

I'll definitely be looking forward to that article.

> 
> Andrei
> 
> P.S. Nice going on stackoverflow.com, Jonathan.

Thanks!

- Jonathan M Davis


More information about the phobos mailing list