summaryrefslogtreecommitdiff
path: root/tests/test_signal_move.cc
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-11-08 10:04:31 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-11-08 10:04:31 +0100
commit18a9f6dce1793ca1f0c3f30add5308b870e92497 (patch)
tree77e768c62eb590fbcdb0a7d67c07686b86895aac /tests/test_signal_move.cc
parentb53b58b7816c20b3d09f1a6fa6ce98da1f003edf (diff)
downloadsigc++-18a9f6dce1793ca1f0c3f30add5308b870e92497.tar.gz
slot and signal: Add missing move constructors and move assignments
* sigc++/functors/macros/slot.h.m4: Add move operators for slot<>. * sigc++/macros/signal.h.m4: Add move operators for signal#<> and signal<>. * tests/test_signal_move.cc: * tests/test_slot_move.cc: Test that the source objects are empty. Bug #756484.
Diffstat (limited to 'tests/test_signal_move.cc')
-rw-r--r--tests/test_signal_move.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_signal_move.cc b/tests/test_signal_move.cc
index 73a7ed2..6365e5b 100644
--- a/tests/test_signal_move.cc
+++ b/tests/test_signal_move.cc
@@ -37,14 +37,14 @@ int main(int argc, char* argv[])
//Test the move constructor:
sigc::signal<int, int> sig2(std::move(sig));
- //sig(-2); Add when more move constructors have been added
+ sig(-2);
sig2(2);
util->check_result(result_stream, "foo(int 2)");
//Test the move assignment operator:
sigc::signal<int, int> sig3;
sig3 = std::move(sig2);
- //sig2(-3); Add when more move assignment operators have been added
+ sig2(-3);
sig3(3);
util->check_result(result_stream, "foo(int 3)");