[aspectc-user] const functions

Sven.Apel at metop-md.de Sven.Apel at metop-md.de
Tue May 27 16:00:51 CEST 2003


Hallo,

I get an error when I try to refer (inside a pointcut) to a constant
function:

class Attribute
{
	...
	Value Get() const {return m_value;}
};

aspect TupleLockAspect
{
	pointcut locking() =	execution("% Attribute::Get(...)");
};

the error message:

./ac_gen.cc(238): error C2440: 'Initialisierung' : 'const Attribute
*const ' kann nicht in 'void *' konvertiert werden

What is the problem?

best regards
Sven




More information about the aspectc-user mailing list