[libsigcplusplus/variadic_mem_fun3: 64/148] Another use of decltype(auto) for a return type



commit e8c83eaff4690c52e279e50d2e1ee4bb85a4cad5
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jan 15 10:24:28 2016 +0100

    Another use of decltype(auto) for a return type

 sigc++/adaptors/exception_catch.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/adaptors/exception_catch.h b/sigc++/adaptors/exception_catch.h
index 80ef94b..992ffd7 100644
--- a/sigc++/adaptors/exception_catch.h
+++ b/sigc++/adaptors/exception_catch.h
@@ -152,7 +152,7 @@ struct visitor<exception_catch_functor<T_functor, T_catcher, T_return> >
 #endif // DOXYGEN_SHOULD_SKIP_THIS
 
 template <class T_functor, class T_catcher>
-inline exception_catch_functor<T_functor, T_catcher>
+inline decltype(auto)
 exception_catch(const T_functor& _A_func, const T_catcher& _A_catcher)
   { return exception_catch_functor<T_functor, T_catcher>(_A_func, _A_catcher); }
 


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