diff mbox

[v3] Fix header included by <bits/ptr_traits.h>

Message ID 20150818123934.GC27791@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely Aug. 18, 2015, 12:39 p.m. UTC
While trying some header rearrangment I noticed that this file should
include <bits/move.h> for addressof.

Tested powerpc64le-linux, committing to trunk.
diff mbox

Patch

commit 223119133ca91452b3e9979a2f1eeb4554210d12
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Aug 18 13:03:40 2015 +0100

    	* include/bits/ptr_traits.h: Include <bits/move.h> for addressof.

diff --git a/libstdc++-v3/include/bits/ptr_traits.h b/libstdc++-v3/include/bits/ptr_traits.h
index 84cc4da..d1bc449 100644
--- a/libstdc++-v3/include/bits/ptr_traits.h
+++ b/libstdc++-v3/include/bits/ptr_traits.h
@@ -32,7 +32,7 @@ 
 
 #if __cplusplus >= 201103L
 
-#include <type_traits>
+#include <bits/move.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {