summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-01-15 10:24:28 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-01-15 10:24:28 +0100
commit0b2ad89f97dcdc37c74788df9f251518ab5bc2d4 (patch)
tree563f2a4992a4e4668d9d3d1606212c7c22552935
parentbf014eccd7a909f3fe0494312569a4affd00fa8b (diff)
downloadsigc++-0b2ad89f97dcdc37c74788df9f251518ab5bc2d4.tar.gz
Another use of decltype(auto) for a return type
-rw-r--r--sigc++/adaptors/exception_catch.h2
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); }