The following constructor considered a one argument constructor: MyClass::MyClass(int a, int b = 0);
This constructor will still be used in an implicit conversion. It is best to use the "explicit" keyword, unless you really want implicit conversions.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment