Skip to content
Snippets Groups Projects
Commit b3d9e7ee authored by Marco Clemencic's avatar Marco Clemencic
Browse files

avoid infinite recursion when de-reffing ServiceHandle

See merge request !235
parents bad2bf34 4692d506
No related branches found
No related tags found
1 merge request!235avoid infinite recursion when de-reffing ServiceHandle
Pipeline #
......@@ -73,10 +73,11 @@ public:
// }
/// Allow non const access to the service, even from a const handle...
T * get() const { return this->nonConst( GaudiHandle<T>::get() ); }
T * get() const { return GaudiHandle<T>::nonConst( GaudiHandle<T>::get() ); }
/// Allow non const access to the service, even from a const handle...
T * operator->() const { return this->nonConst( GaudiHandle<T>::operator->() ); }
T* operator->() const { return GaudiHandle<T>::nonConst( GaudiHandle<T>::operator->() ); }
T& operator*() const { return * GaudiHandle<T>::nonConst( GaudiHandle<T>::operator->() ); }
protected:
/** Do the real retrieval of the Service. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment