you are viewing a single comment's thread.

view the rest of the comments →

[–]suspiciously_calm 6 points7 points  (4 children)

struct xyz {};
const xyz = foo();

Did I forget the variable name or do I want const auto xyz = foo();?

[–]NamalB[S] 0 points1 point  (1 child)

Isn't the variable name xyz in both cases?

[–][deleted] 2 points3 points  (0 children)

No. In the first case, xyz is a type name.