constify
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 12 Aug 2007 17:59:56 +0200
changeset 1342 4603fcee4ffb
parent 1341 f685d4bf320f
child 1343 421d8d4712f9
constify
src/core/callback.h
--- a/src/core/callback.h	Sun Aug 12 16:28:29 2007 +0200
+++ b/src/core/callback.h	Sun Aug 12 17:59:56 2007 +0200
@@ -306,11 +306,11 @@
     return (*(PeekImpl ())) (a1,a2,a3,a4,a5);
   }
 
-  bool IsEqual (CallbackBase const &other) {
+  bool IsEqual (CallbackBase const &other) const {
     return PeekImpl ()->IsEqual (other.PeekImpl ());
   }
 
-  bool CheckType (CallbackBase const& other) {
+  bool CheckType (CallbackBase const& other) const {
     CallbackImplBase *otherBase = other.PeekImpl ();
     if (dynamic_cast<CallbackImpl<R,T1,T2,T3,T4,T5> *> (otherBase) != 0)
       {