Quick Q: () vs {} when constructing objects

Save to:
Instapaper Pocket Readability

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

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.