[aspectc-user] reset tjp->that()?
Yan Mao
maoyan at gmx.net
Fri Dec 8 00:13:01 CET 2006
Hello there,
I'd like to ask, if it is possible to reset the pointer tjp->that() of NULL?
say i have an object pointer, after i use it, i release it, and i wnat to set it as NULL with AOP.
//the C++ code
ClassA *p = new ClassA();
p->DoSomething();
p->Release();
//now i want to set p=NULL with AOP
//the AOP Code:
advice call("% ...::Release()"):after(){
tjp->that()=NULL;
}
but i got the error C2106, "=": Linker Operand muss ein L-Wert Sein.
regards,
Yan Mao
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
More information about the aspectc-user
mailing list