struct Foo
{
int a_;
};
class Base
{
protected:
Foo f_;
public:
void Bar()
{
}
};
struct Derived : public Base
{
int foo1_;
void Baz()
{
this->
}
};
Upon hitting the this-> inside Derived::Baz, I don’t get f_ as a suggestion. If I then type f_. anyway, I do get a_. as a suggestion. If I change Foo f_ to be public instead of protected then it works.
This topic was modified 7 years, 11 months ago by Ophidian14.