We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6ecb3 commit 9e5e38cCopy full SHA for 9e5e38c
tests/test_retype.cc
@@ -86,6 +86,14 @@ void test_retype_slot()
86
util->check_result(result_stream, "foo::test_int(int 5) 7.5");
87
}
88
89
+void test_std_function_style_syntax()
90
+{
91
+ foo foo_;
92
+ sigc::slot<float(float)> s1 = sigc::retype(sigc::mem_fun(foo_, &foo::test_int));
93
+ result_stream << s1(1.234f);
94
+ util->check_result(result_stream, "foo::test_int(int 1) 1.5");
95
+}
96
+
97
} // end anonymous namespace
98
99
int main(int argc, char* argv[])
@@ -105,5 +113,7 @@ int main(int argc, char* argv[])
105
113
106
114
test_retype_slot();
107
115
116
+ test_std_function_style_syntax();
117
108
118
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
109
119
0 commit comments