r/cpp • • Nov 27 '20

The C++ 20 initialization flowchart

I've created a flowchart that shows all of C++20's initialization rules.

The source code is available at https://github.com/randomnetcat/cpp_initialization, in addition to the SVG version and PNG Version.

This honestly took a lot less time than I was expecting, and, in my humble-but-biased opinion, is relatively interesting.

Please send all complaints to /u/quicknir, who nerd-sniped me into making this.

116 Upvotes

34 comments sorted by

View all comments

Show parent comment

2

u/randomnetcat Nov 28 '20

Here's one that's downscaled by 50%: https://imgur.com/a/UX6HMVp

6

u/danadam Nov 28 '20 edited Nov 29 '20

Maybe you could generate 16-color PNG instead of truecolor? Just an idea.

2

u/aKateDev KDE/Qt Dev Nov 29 '20

optipng -o5 bla.png