diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_limit_reference.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_limit_reference.cc b/tests/test_limit_reference.cc index 8d1340d..a115d6d 100644 --- a/tests/test_limit_reference.cc +++ b/tests/test_limit_reference.cc @@ -14,6 +14,8 @@ class Base : virtual public sigc::trackable public: Base() {} + Base(const Base& src) = default; + Base& operator=(const Base& src) = default; Base(Base&& src) = delete; Base& operator=(Base&& src) = delete; }; @@ -47,11 +49,11 @@ main(int argc, char* argv[]) handler(); util->check_result(result_stream, "method()"); - auto param = sigc::bind(sigc::slot<void(Derived&)>(), std::ref(*instance)); + sigc::slot<void()> param = sigc::bind(sigc::slot<void(Derived&)>(), std::ref(*instance)); param(); util->check_result(result_stream, ""); - auto ret = sigc::bind_return(sigc::slot<void()>(), std::ref(*instance)); + sigc::slot<Derived()> ret = sigc::bind_return(sigc::slot<void()>(), std::ref(*instance)); ret(); util->check_result(result_stream, ""); |