On Fri, 26 Sep 2008, Roy Stogner wrote:

> The only big catch that you need to worry about with that conversion
> is vector resizing

Whoops!  There's actually one more catch, if you have an expansive
definition of "C array".  To save storage space, there's a trick in
the standard:  std::vector<bool> isn't really a std::vector, it's a
data structure that encapsulates some bit twiddling to carry the
requested information.  Even trying to get a reference to a single
bool entry isn't supported AFAIK, much less trying to do pointer
arithmetic on them.
---
Roy

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to