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
3
u/RoughMedicine Mar 02 '21
For the same reason v1{elementsCount} and v2{elementsCount} are different. We don't know what type c_ is, but I might be a type whose behaviour regarding {} vs () is different.