[aspectc-user] Warnings

Dimple dimple.kaul at vanderbilt.edu
Tue Nov 29 20:57:27 CET 2005


Hi Olaf,
I have a question
If I have a overloaded method in my parent class
Like 
A::abc(int,char*,int);
A::abc(int);
A::abc(char*);

And I want to replace it with other child method
Like

B::abc(int,char*,int);
B::abc(int);
B::abc(char*);

So how should be the advice be?? I tried following advice but it is giving
me some syntax errors. Should I write separate advice for all the three
methods? But in call if I write A::abc(...) which one will it pick?

advice call ("% A::abc(...)") : around () 
{
 
((B*)tjp->target())->B::abc(*tjp->arg<0>(),*tjp->arg<1>(),*tjp->arg<2>());
  }

Is there a way to generalize advice for overloaded methods?

Thanks,
Dimple


Thanks,
Dimple Kaul




More information about the aspectc-user mailing list