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:
parent
6c88184b6b
commit
ba0b43ce20
@ -64,7 +64,7 @@ namespace util {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class value_signal : public signal<void(T)> {
|
class value_signal : public signal<void(T)> {
|
||||||
public:
|
public:
|
||||||
value_signal (T&&);
|
value_signal (T);
|
||||||
value_signal () = default;
|
value_signal () = default;
|
||||||
|
|
||||||
operator const T&() const;
|
operator const T&() const;
|
||||||
|
@ -171,8 +171,8 @@ namespace util {
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_signal<T>::value_signal (T &&t):
|
value_signal<T>::value_signal (T t):
|
||||||
m_value (std::forward<T> (t))
|
m_value (t)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user