Robert Dempsey wrote:
>> So it's going to be vector<bool> to the rescue.
> 
> I don't know enough about how this container will be used in drizzle, so
> I can only offer this as an item of possible interest: "Item 18: Avoid
> using vector<bool>" from Meyers' "Effective STL".

Ideed... and in almost all cases I agree. The gist is that it isn't
actually a container (like vector would imply) because it doesn't share
all of the container behavior, and it doesn't actually hold bools.
(which is actually a plus for us)

If replacing bitset in this case with vector<bool> works out, I imagine
we'll take it the next step and replace that with mats' bitvector
eventually, since I think it has more optimal methods for dealing with
some of the operations we want to perform.

Monty

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to