Skip to main content
7 events
when toggle format what by license comment
Feb 21, 2016 at 14:49 vote accept Edward
Jan 27, 2016 at 6:07 answer added Jerry Coffin timeline score: 6
Jan 26, 2016 at 17:47 comment added Loki Astari There are other disadvantages. Like it does not behave like other vectors. It is not required to conform to Sequence or Container requirements. Some examples: You can not get a reference to a member, ie (operator[] does not return a reference to a bool). Memory is not contiguous (so assumption made by a lot of code does not hold).
Jan 26, 2016 at 12:32 comment added Edward Actually x[2] = true; is guaranteed to work because operator [] returns a reference subclass that does this. See en.cppreference.com/w/cpp/container/vector_bool/reference
Jan 25, 2016 at 21:40 history tweeted twitter.com/StackCodeReview/status/691737387773378561
Jan 25, 2016 at 21:20 history edited 200_success
edited tags
Jan 25, 2016 at 21:05 history asked Edward CC BY-SA 3.0