diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-16 10:42:04 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-16 13:17:37 +0100 |
commit | b757954a449b2618da1248e16cd43c72b14dc4ff (patch) | |
tree | aeb997a9e88fa6cfcdcdb6f5d32813faeac27da5 /tests/test_bind_as_slot.cc | |
parent | 1ae52bbc4f6b91051ae351b564d00f96502df5b1 (diff) | |
download | sigc++-b757954a449b2618da1248e16cd43c72b14dc4ff.tar.gz |
tests: Use the sigc::slot<R(Args...)> syntax only.
Diffstat (limited to 'tests/test_bind_as_slot.cc')
-rw-r--r-- | tests/test_bind_as_slot.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_bind_as_slot.cc b/tests/test_bind_as_slot.cc index 28bcf4f..763e48f 100644 --- a/tests/test_bind_as_slot.cc +++ b/tests/test_bind_as_slot.cc @@ -46,7 +46,7 @@ int main(int argc, char* argv[]) //Test that sigc::bind()'s result can be converted to a sigc::slot<>. { - sigc::slot<bool, int> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind), 2); + sigc::slot<bool(int)> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind), 2); bound_slot(1); util->check_result(result_stream, "func_to_bind(1, 2)"); } @@ -54,7 +54,7 @@ int main(int argc, char* argv[]) //Test with a non-const iterator: { std::string c = "2"; - sigc::slot<bool, int> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind_with_iter), c.begin()); + sigc::slot<bool(int)> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind_with_iter), c.begin()); bound_slot(1); util->check_result(result_stream, "func_to_bind_with_iter(1, 2)"); } @@ -62,7 +62,7 @@ int main(int argc, char* argv[]) //Test with a const_iterator: { const std::string c = "2"; - sigc::slot<bool, int> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind_with_const_iter), c.begin()); + sigc::slot<bool(int)> bound_slot = sigc::bind(sigc::ptr_fun(&func_to_bind_with_const_iter), c.begin()); bound_slot(1); util->check_result(result_stream, "func_to_bind_with_const_iter(1, 2)"); } |