summaryrefslogtreecommitdiff
path: root/tests/test_visit_each.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_visit_each.cc')
-rw-r--r--tests/test_visit_each.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_visit_each.cc b/tests/test_visit_each.cc
index c47fca1..a22b620 100644
--- a/tests/test_visit_each.cc
+++ b/tests/test_visit_each.cc
@@ -84,9 +84,7 @@ namespace ns1
template <class T_functor>
struct MyAdaptor1 : public sigc::adapts<T_functor>
{
- using result_type = typename sigc::functor_trait<T_functor>::result_type;
-
- result_type operator()() const
+ decltype(auto) operator()() const
{
result_stream << "MyAdaptor1()() ";
return this->functor_();