July 09, 2010 [phobos] phobos commit, revision 1740 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | 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. Yes. I should say that it was quite amazing to witness how quite sophisticated algorithms, such as std.bringToFront, worked out of the box without ever figuring they weren't ever using real data with real addresses. Sealing works! > If you want a > plain old BitArray there's one in std.bitmanip. I plan to deprecate that. Andrei |
Copyright © 1999-2021 by the D Language Foundation