[aspectc-user] AspectC++ doesn't support objects?

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Thu Mar 6 08:27:02 CET 2003


Dear Betty,

On Thursday 06 March 2003 03:52, Goh, Betty wrote:
> Dear all,
>
> I found the answer to my question, seemed like AspectC++ doesn't support
> STL yet.
> http://www.aspectc.org/pipermail/aspectc-user/2002-September/000105.html
>
> However, that lead to another question:
> Does AspectC++ support user-defined objects?
> Say for instance, I'm trying to use AspectC++ to include logging messages
> (from log4cpp), and this would involve the inclusion of header files from
> log4cpp and declaring logger objects.
> Would AspectC++ be able to handle this properly?

There is no conceptional problem that prevents your AspectC++ code to include 
log4cpp header files and to instantiate logger objects. However, if it works 
depends on the code of the header files. If it uses string or some other STL 
classes you will run into parse problems again. It's easy to test this. Just 
extend one of the example aspects by an include directive. Please tell me, if 
you are successful :-)

Yours,

Olaf



More information about the aspectc-user mailing list