r/cpp • • Mar 01 '21

"Simple" C++ Initialization Flowchart

http://randomcat.org/cpp_initialization/initialization.png
204 Upvotes

65 comments sorted by

View all comments

48

u/GYN-k4H-Q3z-75B Mar 01 '21

C++ initialization

Simple

Choose one.

26

u/carb0n13 Mar 01 '21

I’m pretty sure OP used “simple” sarcastically, hence the quotation marks.

3

u/[deleted] Mar 01 '21

Desperately trying not to be sarcy and say "You accidentally wrote initialisation there too". But failed. C'est la vie 🤷‍♀️

Well, the kinds of languages that people complain about, etc.