[libsigc++2/variadic_bind2: 65/68] test_bind_ref: Fix the build.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2/variadic_bind2: 65/68] test_bind_ref: Fix the build.
- Date: Tue, 1 Mar 2016 21:49:11 +0000 (UTC)
commit a80b73111fbd1da759ae8bb11b34919fb9a41186
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Feb 19 12:56:51 2016 +0100
test_bind_ref: Fix the build.
sigc::bind<>'s second template parameter is now the type of the functor.
tests/test_bind_ref.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_bind_ref.cc b/tests/test_bind_ref.cc
index d8ea53b..f3e11c6 100644
--- a/tests/test_bind_ref.cc
+++ b/tests/test_bind_ref.cc
@@ -54,7 +54,7 @@ int main(int argc, char* argv[])
Param param("murrayc");
// A convoluted way to do
// slot_bound = sigc::bind(slot_full, std::ref(param));
- slot_bound = sigc::bind< -1, std::reference_wrapper<Param> >(slot_full, std::ref(param));
+ slot_bound = sigc::bind< -1, decltype(slot_full), std::reference_wrapper<Param> >(slot_full,
std::ref(param));
result_stream << "Calling slot when param exists:";
slot_bound();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]