[aspectc-user] First post

Fabian Scheler fabian.scheler at gmail.com
Wed Jul 19 21:45:22 CEST 2006


Hello,

>  you must also write a constructor and destructor. Aspects do not affect
> functions that are not present in
>  your code (default constructor etc).

that's not the whole truth - in fact, AspectC++ even generates a copy
constructor when construction advice is given - but AspectC++ needs to
know where it should place the generated code for the copy constructor
(if the code is put to the wrong place this might cause undefined
symbols when linking all the stuff). Therefore at least one
translation unit must exist that contains the definition of a method
of the particular class.

Ciao, Fabian



More information about the aspectc-user mailing list