diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-01-15 10:24:28 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-02 11:52:29 +0100 |
commit | 4b4e877ae8140dec42ef05a543710931de94d752 (patch) | |
tree | 397b02bd37617e3ced9d948377e294e1bbfdf3bd | |
parent | bd2beae7db22914e07aba9156ef7dc45cd179007 (diff) | |
download | sigc++-4b4e877ae8140dec42ef05a543710931de94d752.tar.gz |
Another use of decltype(auto) for a return type
-rw-r--r-- | 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); } |