C++ constructors misdesign..
4, Aug, 2020
class Channel {
Channel(char *name, int port); // server
Channel(char *address, int port); // client
}
And yes, everybody knows the named constructor pattern, but why constructors are not named by default?
- Posted by michal in
- Add a comment