diff options
Diffstat (limited to 'cpp/src/qpid/framing/Handler.h')
| -rw-r--r-- | cpp/src/qpid/framing/Handler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/Handler.h b/cpp/src/qpid/framing/Handler.h index 3e55dff1bd..fbf3c0b7ca 100644 --- a/cpp/src/qpid/framing/Handler.h +++ b/cpp/src/qpid/framing/Handler.h @@ -33,6 +33,7 @@ template <class T> struct Handler { typedef T HandledType; typedef void handleFptr(T); + typedef void result_type; // Compatible with std/boost functors. Handler(Handler<T>* next_=0) : next(next_) {} virtual ~Handler() {} @@ -51,7 +52,7 @@ struct Handler { struct Chain : public Handler<T> { Chain(Handler<T>* first=0) : Handler(first) {} void operator=(Handler<T>* h) { next = h; } - void handle(T t) { (*next)(t); } + void handle(T t) { next->handle(t); } // TODO aconway 2007-08-29: chain modifier ops here. }; |
