This may be a dumb question, but I couldn't find the answer after searching for hours.
Using AspectC++, we can define pointcuts, which represent something that, once matched, is intercepted. For instance, I can do
pointcut pc() = call("% Base::%(...)");
so that any advice
that uses the pointcut pc
will intercept any call to some method of class Base
. This works even if, later, a subclass Sub
of Base
is created: pc
will intercept calls to methods of Sub
as well. Now, what I want is to intercept methods only of Sub
, that is, methods of Sub
which are not present in Base
. How can we make pc()
intercept any method of any subclass of Base
that is eventually created, but not methods of Base
itself?