diff options
| author | Alan Conway <aconway@apache.org> | 2008-05-09 18:46:17 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-05-09 18:46:17 +0000 |
| commit | b0f3edfa2a68ccf34aa7a555d0d37c2e17b8421b (patch) | |
| tree | a94c5a579769809f4d398f4c65ad579a432b93fd /cpp/src/qpid/framing/Handler.h | |
| parent | 2ebccc4f3ab6e7813ac2179c8318163ffdd22cff (diff) | |
| download | qpid-python-b0f3edfa2a68ccf34aa7a555d0d37c2e17b8421b.tar.gz | |
Support for 0-10 sessions, not yet integrated. Misc minor fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@654913 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/Handler.h')
| -rw-r--r-- | cpp/src/qpid/framing/Handler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/framing/Handler.h b/cpp/src/qpid/framing/Handler.h index fbf3c0b7ca..b93869be85 100644 --- a/cpp/src/qpid/framing/Handler.h +++ b/cpp/src/qpid/framing/Handler.h @@ -82,14 +82,14 @@ struct Handler { template <class X, void (X::*F)(T)> class MemFunRef : public Handler<T> { public: - MemFunRef(X& x, Handler<T>* next=0) : Handler(next), target(x) {} - void handle(T t) { (target.*F)(t); } + MemFunRef(X& x, Handler<T>* next=0) : Handler(next), target(&x) {} + void handle(T t) { (target->*F)(t); } /** Allow calling with -> syntax, compatible with Chains */ MemFunRef* operator->() { return this; } private: - X& target; + X* target; }; /** Interface for a handler that implements a |
