You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that a constructor outside of a class is only recognised if the class is known. Otherwise, it is recognised as a method declaration with an empty type - which is slightly off.
Example code:
intmain() {
SomeClass* c = newSomeClass();
}
SomeClass::SomeClass() {
}
My suggestions would be that the following must be present in order for it to be recognised as a constructor:
empty type declaration
parent name == local name
The text was updated successfully, but these errors were encountered:
It seems that a constructor outside of a class is only recognised if the class is known. Otherwise, it is recognised as a method declaration with an empty type - which is slightly off.
Example code:
My suggestions would be that the following must be present in order for it to be recognised as a constructor:
The text was updated successfully, but these errors were encountered: