You need an instance of A
. A::impl
is a different struct than A
, so the implicit this
is not the right instance. Pass one in in the constructor:
struct A::impl {
impl(A& parent) : parent_(parent) {} //some constructor
...
some_impl_type some_impl_func() {
some_type x = parent_.some_func(); //-Need to access some_func() here like this
}
A& parent_;
};