12.1/1. Constructors do not have names. A special declarator syntax using an optional sequence of function-specifiers (7.1.2) followed by
the constructor’s class name followed by a parameter list is used to
declare or define the constructor. In such a declaration, optional
parentheses around the constructor class name are ignored.
Reading that text, I wonder what are the parenthesis around constructor names in the following example which are ignored?
class MyClass
{
MyClass();
};
MyClass::MyClass() {
}
There are no optional parentheses in your code snippet. The following example has optional parentheses around the constructor class name, and these parentheses are ignored: