Quick Q: () vs {} when constructing objects

Quick A: Read the core guidelines

Recently on reddit:

() vs {} when constructing objects

If I know the type, I'll write {}. If the type is generic, I'll only write {} with zero parameters. Otherwise, I might construct an initializer_list I didn't intend to...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.