diff --git a/Core/cafSignal.h b/Core/cafSignal.h index 1359464a..4d933c3b 100644 --- a/Core/cafSignal.h +++ b/Core/cafSignal.h @@ -164,6 +164,7 @@ class Signal : public AbstractSignal bool connected( const SignalObserver* observer ) const { + // Possible to search for const-pointer due to transparent comparator auto it = m_observerCallbacks.find( observer ); return it != m_observerCallbacks.end(); } @@ -173,7 +174,8 @@ class Signal : public AbstractSignal Signal& operator=( const Signal& rhs ) = delete; private: - std::map m_observerCallbacks; - const SignalEmitter* m_emitter; + using TransparentComparator = std::less<>; + std::map m_observerCallbacks; + const SignalEmitter* m_emitter; }; } // namespace caffa