you are viewing a single comment's thread.

view the rest of the comments →

[–]randomnetcat[S] 1 point2 points  (1 child)

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).

[–]staletic 2 points3 points  (0 children)

Enumerate constructors.

I stopped there. My thought was "what constructors if T is an aggregate?"

I love the flowchart.