[Bug libstdc++/56257] std::vector allows access to the elements of _Vector_base

2017-12-14 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 Ville Voutilainen changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug libstdc++/56257] std::vector allows access to the elements of _Vector_base

2013-02-09 Thread bangerth at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 --- Comment #3 from Wolfgang Bangerth bangerth at gmail dot com 2013-02-09 21:37:55 UTC --- :-) Sure, and of course I did tell him don't do that. In essence it's a question of how easy it is to shoot yourself in the foot by exposing

[Bug libstdc++/56257] std::vector allows access to the elements of _Vector_base

2013-02-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2013-02-09 01:57:32 UTC --- How about don't do that.

[Bug libstdc++/56257] std::vector allows access to the elements of _Vector_base

2013-02-08 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56257 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2013-02-09 02:01:21 UTC --- To be specific, of course using a name like _M_impl doesn't lead to portable code ... that's kinda the point of reserved names. We use them for our own