comparison Framework/Messages/ObserverBase.h @ 1067:05b2e71ed145 broker

removed MessageForwarder, unit tests are ok
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Oct 2019 18:11:40 +0200
parents 9d42f89b8c3c
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1066:b537002f83a9 1067:05b2e71ed145
43 { 43 {
44 return this->shared_from_this(); 44 return this->shared_from_this();
45 } 45 }
46 catch (boost::bad_weak_ptr&) 46 catch (boost::bad_weak_ptr&)
47 { 47 {
48 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError, 48 throw Orthanc::OrthancException(
49 "Cannot get a shared pointer to an observer from a constructor"); 49 Orthanc::ErrorCode_InternalError,
50 "Cannot get a shared pointer to an observer from its constructor, "
51 "or the observer is not created as a shared pointer");
50 } 52 }
51 } 53 }
52 54
53 template <typename TMessage> 55 template <typename TMessage>
54 ICallable* CreateCallable(void (TObserver::* MemberMethod) (const TMessage&)) 56 ICallable* CreateCallable(void (TObserver::* MemberMethod) (const TMessage&))