A belated link to Andrzej's recent article:
Empty list initialization
by Andrzej Krzemieński
From the article:
My conclusion from the above story is this piece of advice. When you provide an initializer-list constructor for your class, make sure that you also provide a default constructor with the same semantics as though you were initializing with a zero-size
initializer_list
.
Add a Comment
Comments are closed.