12.1 / 1. Constructors have no names. The special declarator syntax using an optional sequence of specifier functions (7.1.2), followed by the name of the constructor class, followed by a list of parameters, is used to declare or define the constructor. In such a statement, the optional parentheses around the constructor class name are ignored.
Reading this text, I wonder what are the brackets around the constructor names in the following example that are ignored?
class MyClass { MyClass(); }; MyClass::MyClass() { }
source share