0
Why not initializer list ?
Hi If initializer list is defined, it is first chosen over constructor Why I am not getting initializer list called for c3 object ? https://code.sololearn.com/cfazIOYh3MQ5/?ref=app
1 ответ
+ 5
The initializer list constructor have precedence over other ctors only when initializer syntax is used.... If you initialize c3 like
C c3{4};
the inizializer list ctor will be called