Does the equal sign make a difference in brace initialization? eg. ‘T a = {}’ vs ‘T a{}’
The only significant difference I know is in the treatment of explicit constructors: struct foo { explicit foo(int); }; foo f0 {42}; // OK foo f1 = {42}; // not allowed This is similar to the “traditional” initialization: foo f0 (42); // OK foo f1 = 42; // not allowed See [over.match.list]/1. Apart from that, … Read more