signal: remove rvalref from constructor

too difficult to allow binding to lvals and rvals so just drop the rval
support. we shouldn't be using heavyweight types here anyway.
This commit is contained in:
Danny Robson 2015-02-20 21:54:08 +11:00
parent 6c88184b6b
commit ba0b43ce20
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ namespace util {
template <typename T>
class value_signal : public signal<void(T)> {
public:
value_signal (T&&);
value_signal (T);
value_signal () = default;
operator const T&() const;

View File

@ -171,8 +171,8 @@ namespace util {
///////////////////////////////////////////////////////////////////////////
template <typename T>
value_signal<T>::value_signal (T &&t):
m_value (std::forward<T> (t))
value_signal<T>::value_signal (T t):
m_value (t)
{ ; }