[aspectc-user] Re: aspectc-user Digest, Vol 28, Issue 4

Reinhard Tartler siretart at tauware.de
Thu Mar 8 21:58:36 CET 2007

"Wagner Salazar" <salazar.wagner at gmail.com> writes:

> I got the source.. and I didnĀ“t find a class with the TJP name. I
> found a ThisJoinPoint.. and once more.. Do I have to download the
> source and compile it...to used a construction like that ?

TJP is a join point specific type ac++ creates. You therefore need to
create a template function to pass the 'tjp' object. Try something like

#include <cstdio>

template <class TJP>
TJP &pass(TJP tjp) {
  puts("call from advice");

aspect testy {
  advice call("% testy(...)") : around () {
    tjp->action(); // necessary to force ac++ to create an tjp object

int testy() {
  puts("passing works");

int main() {

Reinhard Tartler, KeyID 945348A4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20070308/d2c1edb2/attachment.sig>

More information about the aspectc-user mailing list