[aspectc-user] Re: [aspectc-user] How to introduce a method into a class ??

Bartosz Blimke masb at chorwacja.com
Wed Jul 28 10:59:45 CEST 2004

> Hello,
> I'm gonna look more into my code to see if there is a
> problem else where. On the other hand what is the
> syntax to indicate that this method is going to be
> public ?
> thanks

Method introduced into the class has the same visiblity
as the advice where it is defined inside an aspect.
If you want it to be public in the target class, just define advice
as a public.

aspect TEST {

public: // <- add public: keyword here

advice "Class1" : void do_some_work() {
                             cout << "doing some work" << endl;


More information about the aspectc-user mailing list