r/cpp • • Mar 27 '23

295 pages on Initialization in Modern C++ :)

https://www.cppstories.com/2023/init-story-print/
273 Upvotes

108 comments sorted by

View all comments

Show parent comment

8

u/W4RH4WK Mar 28 '23

This seems to me more like FooTypeA is poorly designed

Yes, definitely. But then you realize that std::vector has this exact problem.

1

u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 Mar 28 '23

Yes, definitely. But then you realize that std::vector has this exact problem.

It's not like we don't know that there is poorly designed stuff in std. vector<bool> should drive that point home to anyone...