[PATCH] Remove invalid alias declaration from _Node_handle

Jonathan Wakely jwakely@redhat.com
Wed Oct 5 11:35:00 GMT 2016


This alias-declaration isn't valid (it should go through
allocator_traits) but isn't needed anyway.

	* include/bits/node_handle.h (_Node_handle): Remove invalid and unused
	alias declaration.

Tested powerpc64le-linux, committing to trunk.

-------------- next part --------------
commit 7ba39a821c7af0991abdec3f071d8f1270652f48
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Oct 5 11:26:10 2016 +0100

    Remove invalid alias declaration from _Node_handle
    
    	* include/bits/node_handle.h (_Node_handle): Remove invalid and unused
    	alias declaration.

diff --git a/libstdc++-v3/include/bits/node_handle.h b/libstdc++-v3/include/bits/node_handle.h
index 60c2883..e89092b 100644
--- a/libstdc++-v3/include/bits/node_handle.h
+++ b/libstdc++-v3/include/bits/node_handle.h
@@ -182,10 +182,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     private:
       using _AllocTraits = allocator_traits<_NodeAlloc>;
 
-      using _PtrTraits = pointer_traits<typename _NodeAlloc::pointer>;
-
       _Node_handle(typename _AllocTraits::pointer __ptr,
-			   const _NodeAlloc& __alloc)
+		   const _NodeAlloc& __alloc)
       : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc)
       {
 	if (__ptr)
@@ -261,7 +259,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       using _AllocTraits = allocator_traits<_NodeAlloc>;
 
       _Node_handle(typename _AllocTraits::pointer __ptr,
-			   const _NodeAlloc& __alloc)
+		   const _NodeAlloc& __alloc)
       : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { }
 
       const value_type&


More information about the Libstdc++ mailing list