Make agi::Signal uncopyable

Originally committed to SVN as r5076.
This commit is contained in:
Thomas Goyne 2010-12-31 21:02:49 +00:00
parent a566955047
commit 5920c3124b

View file

@ -110,7 +110,12 @@ namespace detail {
/// @brief Disconnect the passed slot from the signal
/// @param tok Token to disconnect
virtual void Disconnect(ConnectionToken *tok)=0;
/// Signals can't be copied
SignalBase(SignalBase const&);
SignalBase& operator=(SignalBase const&);
protected:
SignalBase() { }
/// @brief Notify a slot that it has been disconnected
/// @param tok Token to disconnect
///