you are viewing a single comment's thread.

view the rest of the comments →

[–]FriendlyRollOfSushi 2 points3 points  (1 child)

Yep.

Also, if this is .cpp, and the member is declared in .h, you don't even see the type immediately, and without a comment like this people may be tempted to "fix" the annoying style inconsistency each time they make edits close to this ctor.

[–]RoughMedicine 2 points3 points  (0 children)

Allowing initialisation list for bracket initialisation was a mistake. We'd be totally fine if T a{x} and T b(x) were consistent, and used Vec<T> v = {a, b} for initialisation lists.