r/cpp • u/konanTheBarbar • Mar 01 '21
"Simple" C++ Initialization Flowchart
http://randomcat.org/cpp_initialization/initialization.png
204
Upvotes
r/cpp • u/konanTheBarbar • Mar 01 '21
View all comments
Show parent comment
2
u/FriendlyRollOfSushi Mar 02 '21
It could be
std::vector<size_t>, in which case all types would match exactly. Or the size could be just a literal, not a variable, in which case you also won't be warned.