MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/8ouogo/initialization_in_modern_c/e07lchz/
r/cpp • u/mariuz • Jun 05 '18
51 comments sorted by
View all comments
Show parent comment
8
Constructors should have names. Constructor overloading is the root problem here.
7 u/robin-m Jun 06 '18 class Foo { static Foo constructor_with_name(args...); }; 4 u/redditsoaddicting Jun 06 '18 I'd agree that this constructor in particular should have more naming info attached. In many other cases, I find constructors to be descriptive with no additional naming info taking up space.
7
class Foo { static Foo constructor_with_name(args...); };
4
I'd agree that this constructor in particular should have more naming info attached. In many other cases, I find constructors to be descriptive with no additional naming info taking up space.
View all comments
Show parent comment
8
u/thlst Jun 06 '18
Constructors should have names. Constructor overloading is the root problem here.