-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 3.5.1
-
None
If you are adding things like friend operators to a class like this:
MyClass
{ public: friend operator==(const MyClass& lhs, const MyClass& rhs); }you can click "Add definition to class.cpp" to create a definition. The definition incorrectly looks like this:
bool MyClass::operator==(const MyClass& lhs, const MyClass& rhs)
{
}
The MyClass:: part should not be there, as a friend function can be declared inside the scope of the class but is not a member function of that class.
- duplicates
-
QTCREATORBUG-7164 Prototype of friend method creates(hit alt + enter on method declaration) wrong
-
- Closed
-