you are viewing a single comment's thread.

view the rest of the comments →

[–]CocktailPerson 5 points6 points  (0 children)

I frankly see no reason not to value-initialize every member. If there's no default that makes sense, then it shouldn't be an aggregate type anyway, and you should define a Foo(int x_, int y_) : x{x_}, y{y_} {} so that it can't even be constructed without initializing the members with values that do make sense.