--- gvpe/src/callback.pl 2005/12/27 16:36:16 1.7 +++ gvpe/src/callback.pl 2006/01/14 11:21:12 1.8 @@ -7,7 +7,7 @@ /* callback.h -- C++ callback mechanism - Copyright (C) 2003-2005 Marc Lehmann + Copyright (C) 2003-2006 Marc Lehmann This file is part of GVPE. @@ -49,11 +49,11 @@ /* a proxy is a kind of recipe on how to call a specific class method */ struct proxy_base { - virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) = 0; + virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) const = 0; }; template struct proxy : proxy_base { - virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) + virtual R call (void *obj, R (object::*meth)($TYPE)$_TYPEARG) const { return (R)((reinterpret_cast(obj)) ->* (reinterpret_cast(meth))) ($ARG); @@ -64,7 +64,7 @@ public: template - callback$a (O1 *object, R (O2::*method)($TYPE)) + explicit callback$a (O1 *object, R (O2::*method)($TYPE)) { static proxy p; obj = reinterpret_cast(object);