[libsigc++2/variadic_bind2: 42/68] 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_bind2: 42/68] make_slot: Use decltype(auto) for return type.
- Date: Tue, 1 Mar 2016 21:47:15 +0000 (UTC)
commit acdefaaa99263c001ee81ac0ba97c7ce21a54ec3
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]