It should work.
Copy-list initialization
The following is valid and is called copy-list-initialization :
joe = {2,60.0};
This is actually temporary on the right side, which is initialized. Check out this answer .
, . , copy-list-initialization. ( ++ 11, , , ++ 11 ):
Employee joe={2,60.0}
:
joe = Employee{2,60.0};
:
Employee joe{2,60.0};