This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Implement P0084R2, Emplace return type, for C++17
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Oct 2016 19:33:44 +0100
- Subject: Re: [PATCH] Implement P0084R2, Emplace return type, for C++17
- Authentication-results: sourceware.org; auth=none
- References: <20161017115650.GA6908@redhat.com>
On 17/10/16 12:56 +0100, Jonathan Wakely wrote:
In C++17 the emplace_front and emplace_back members return a
reference. There isn't a very neat way to implement this, so it's just
lots of conditional compilation.
This fixes a silly typo. Committed to trunk.
commit 688f5967dd566c56c01c710f2c1b49c56eabe123
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Oct 19 19:25:43 2016 +0100
Fix copy&paste error in __gnu_debug::vector
* include/debug/vector (__gnu_debug::vector::emplace_back): Fix return
type.
diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector
index b2d70bd..1b9e4a7 100644
--- a/libstdc++-v3/include/debug/vector
+++ b/libstdc++-v3/include/debug/vector
@@ -479,7 +479,7 @@ namespace __debug
template<typename... _Args>
#if __cplusplus > 201402L
- deque<_Tp, _Alloc>::reference
+ reference
#else
void
#endif