diff mbox

Implement P0084R2, Emplace return type, for C++17

Message ID 20161019183344.GZ2922@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely Oct. 19, 2016, 6:33 p.m. UTC
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.
diff mbox

Patch

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