diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-04-13 21:15:07 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-04-13 21:45:20 +0200 |
commit | 53bbbe7c8c72224ae3c6b647706857218936d833 (patch) | |
tree | a0ac7f6bd86b38f925d4e1d1c4b9060f823984fb /tests | |
parent | e3c79b706dd181c2f8f0e3c812759d7d8d3e183a (diff) | |
download | sigc++-53bbbe7c8c72224ae3c6b647706857218936d833.tar.gz |
Remove all remaining result_type aliases.
They are not actually needed by anything.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_compose.cc | 6 | ||||
-rw-r--r-- | tests/test_hide.cc | 5 | ||||
-rw-r--r-- | tests/test_visit_each.cc | 4 |
3 files changed, 1 insertions, 14 deletions
diff --git a/tests/test_compose.cc b/tests/test_compose.cc index 414947e..51f8e72 100644 --- a/tests/test_compose.cc +++ b/tests/test_compose.cc @@ -8,12 +8,6 @@ #include <sstream> #include <cstdlib> -// assume existance of T_functor::result_type for unknown functor types: -namespace sigc -{ -SIGC_FUNCTORS_HAVE_RESULT_TYPE -} - namespace { std::ostringstream result_stream; diff --git a/tests/test_hide.cc b/tests/test_hide.cc index 7f67688..e8724ab 100644 --- a/tests/test_hide.cc +++ b/tests/test_hide.cc @@ -39,11 +39,6 @@ struct foo_void : public sigc::functor_base } // end anonymous namespace -namespace sigc -{ -SIGC_FUNCTOR_TRAIT(foo, bool) -} - int main(int argc, char* argv[]) { 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_(); |