A few more things:
will take the same place in memory and should maybe be easy to use.
vector<bool> has to store its size additionally, so it is +4 bytes (sizeof(size_t)) for each; not that it is a big deal, though.

We could also use classic c-style bitfield, such as struct{ boo x:1; bool y:1; ... } blockedDOFs, but then again we would have to serialize it as number anyway...

Thanks for suggestion, though. I appreciate people reading code (not just writing, or, yet worse, just pasting ;-) )

Vaclav

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

Reply via email to