Consider:
struct Base {
protected:
bool operator==(const Base& other) const = default;
};
struct Child : Base {
int i;
bool operator==(const Child& other) const = default;
};
bool b = Child() == Child(); // error: deleted operator== because Base::operator== is inaccessible
CWG asks EWG to determine whether the access check for Base::operator==
in the protected base class should succeed when synthesizing Child::operator==
. In the status quo, the access check fails because the relevant object expression is actually of type Base
.
See CWG3007 for details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4