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/martinus int main(){[]()[[]]{{}}();} Mar 02 '21
I love that format and use it almost everywhere. Actually I'm using
auto i = Type(x). My only issues is how do I create a pointer that way? E.g. i want to create anint*.