[libsigc++2/variadic_bind2: 55/68] Another use of decltype(auto) for a return type



commit f0b8c7a674078adcf4bc5910ce0ce168a0db47ba
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]