Get rid of bit and bit[] ?
Oskar Linde
oskar.lindeREM at OVEgmail.com
Fri Feb 24 07:34:58 PST 2006
James Dunne wrote:
> Can someone explain the vector<bool> problem? I thought C++'s bool
> resolved to an integer of the native word size of the machine.
It does, but the standard specifies (or at least used to specify)
vector<bool> as a specialization that keeps a packed representation
internally. This leads to many inconsistencies similar to bit[] in D.
I do not know what the C++ committee has since decided regarding this.
/Oskar
More information about the Digitalmars-d
mailing list