[libsigc++2] tests: Use sigc::deduce_result_t<> instead of deduce_result_type<>::type.



commit e6c888d6bda347c3cf488bba0ee1d1e69d33091c
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Aug 14 22:50:07 2015 +0200

    tests: Use sigc::deduce_result_t<> instead of deduce_result_type<>::type.
    
    This removes the last use of sigc::deduce_result_type<>, allowing
    us to change the implementation of sigc::deduce_result_t more easily.

 tests/test_deduce_result_type.cc |    8 ++++----
 tests/test_visit_each.cc         |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tests/test_deduce_result_type.cc b/tests/test_deduce_result_type.cc
index b052ada..423d8cd 100644
--- a/tests/test_deduce_result_type.cc
+++ b/tests/test_deduce_result_type.cc
@@ -58,17 +58,17 @@ int main(int argc, char* argv[])
   if (!util->check_command_args(argc, argv))
     return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
 
-  bar(sigc::deduce_result_type<foo2, long>::type());
+  bar(sigc::deduce_result_t<foo2, long>());
   util->check_result(result_stream, "double");
 
-  bar(sigc::deduce_result_type<foo2, int, int>::type());
+  bar(sigc::deduce_result_t<foo2, int, int>());
   util->check_result(result_stream, "double");
 
-  bar(sigc::deduce_result_type<foo3, int, int>::type());
+  bar(sigc::deduce_result_t<foo3, int, int>());
   util->check_result(result_stream, "int");
 
 #ifdef FAIL
-  bar(sigc::deduce_result_type<foo2, int, int, int>::type());
+  bar(sigc::deduce_result_t<foo2, int, int, int>());
   util->check_result(result_stream, "double");
 #endif
 
diff --git a/tests/test_visit_each.cc b/tests/test_visit_each.cc
index 56c44fc..a63fa43 100644
--- a/tests/test_visit_each.cc
+++ b/tests/test_visit_each.cc
@@ -90,7 +90,7 @@ struct MyAdaptor1 : public sigc::adapts<T_functor>
 {
   template <class T_arg1=void, class T_arg2=void>
   struct deduce_result_type
-  { typedef typename sigc::deduce_result_type<T_functor, T_arg1, T_arg2>::type type; };
+  { typedef sigc::deduce_result_t<T_functor, T_arg1, T_arg2> type; };
   typedef typename sigc::functor_trait<T_functor>::result_type result_type;
 
   result_type


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]