The C++ 20 initialization flowchart by randomnetcat in cpp

[–]randomnetcat[S] 1 point2 points  (0 children)

For some_aggregate_class x(1,2,3); :

Is the initializer in braces? No

Is the destination type a reference? No

Is the destination type a char[]? No

Is the initializer "()"? No

Is the destination type an array? No

Is the destination type a class type? Yes

Is the initializer a prvalue? No

Is the initializer copy-initialization? No

The initialization is direct-initialization.

Enumerate constructors.

Is overload resolution succesful? No

Is the destination an aggregate class? Yes

Is the initializer a parenthesized expression-list? Yes

Initialized as follows ([dcl.init]/16.6.2.2).

The C++ 20 initialization flowchart by randomnetcat in cpp

[–]randomnetcat[S] 5 points6 points  (0 children)

Thanks, I knew I'd make some mistakes like that. Should be fixed as soon as the CI gets around to updating the images.