[libsigc++2/variadic_bind3: 20/45] make_slot: Use decltype(auto) for return type.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2/variadic_bind3: 20/45] make_slot: Use decltype(auto) for return type.
- Date: Wed, 2 Mar 2016 13:43:08 +0000 (UTC)
commit 9013e6154c8abd534f6b17616272241f5cf764c2
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jan 14 19:41:23 2016 +0100
make_slot: Use decltype(auto) for return type.
sigc++/signal.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/signal.h b/sigc++/signal.h
index 6f0f130..cfede6f 100644
--- a/sigc++/signal.h
+++ b/sigc++/signal.h
@@ -948,7 +948,7 @@ public:
* yields the same result.
* @return A functor that calls emit() on this signal.
*/
- bound_const_mem_functor<result_type, signal_with_accumulator, type_trait_take_t<T_arg>...> make_slot()
const
+ decltype(auto) make_slot() const
{ return bound_const_mem_functor<result_type, signal_with_accumulator,
type_trait_take_t<T_arg>...>(this, &signal_with_accumulator::emit); }
/** Creates an STL-style interface for the signal's list of slots.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]