[aspectc-user] overloaded operator ++() and ++(int)
Hans VB
hans.vanbroeckhoven at telenet.be
Mon May 23 14:39:36 CEST 2005
Hans VB wrote:
> is there a way to differentiate between the pre- and postfix operators
> : operator ++() and operator ++(int) ?
> I've noticed that a pointcut call("B B::operator ++()"); selects
> them both.
Correction: The reason it selects them both is ofcourse I use operator
++() inside operator ++(int) as in :
B temp = *this
--(*this);
return temp;
but the question remains.
> ac++ crashes when specifying the dummy int in a pointcut : call("B
> B::operator ++(int)").
>
Greets,
Hans
More information about the aspectc-user
mailing list