[libsigc++2/variadic_bind2: 61/68] Use decltype(auto).
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2/variadic_bind2: 61/68] Use decltype(auto).
- Date: Tue, 1 Mar 2016 21:48:50 +0000 (UTC)
commit 95a5453d06fa068bb056ab2070f29b7d82146970
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Feb 19 11:32:26 2016 +0100
Use decltype(auto).
sigc++/adaptors/bind.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/adaptors/bind.h b/sigc++/adaptors/bind.h
index 00b0bf8..356e049 100644
--- a/sigc++/adaptors/bind.h
+++ b/sigc++/adaptors/bind.h
@@ -94,7 +94,8 @@ struct TransformEachInvoker
{
//We take T_element as non-const because invoke() is not const.
static
- auto transform(T_element& element) -> decltype(element.invoke())& {
+ decltype(auto)
+ transform(T_element& element) {
return element.invoke();
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]