This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libstdc++/69105, 69106, 69114 use std::addressof


On 07/01/16 15:01 +0000, Jonathan Wakely wrote:
A bumper crop of addressof bugs where I was using & but should have
used std::addressof.

This caused a regression, fixed like so.

Tested x86_64-linux, committed to trunk.


commit 8f7a4cbf1cdae97578a6b4236af532879be15e9d
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jan 8 12:05:44 2016 +0000

    Add missing include for std::__addressof
    
    	PR libstdc++/69160
    	* include/bits/uses_allocator.h: Add missing include.

diff --git a/libstdc++-v3/include/bits/uses_allocator.h b/libstdc++-v3/include/bits/uses_allocator.h
index b3c3f60..70ba007 100644
--- a/libstdc++-v3/include/bits/uses_allocator.h
+++ b/libstdc++-v3/include/bits/uses_allocator.h
@@ -30,6 +30,7 @@
 #else
 
 #include <type_traits>
+#include <bits/move.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]