]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
shared_ptr_base.h (__shared_ptr::_Deleter): Fix parameter type.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Jun 2014 12:43:59 +0000 (13:43 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Jun 2014 12:43:59 +0000 (13:43 +0100)
* include/bits/shared_ptr_base.h (__shared_ptr::_Deleter): Fix
parameter type.

From-SVN: r212027

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h

index 7b6c2413f00f0e01d8e090dc48da51c23a434263..ba61134f7bdec1b2d92100714e146e7bac283481 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/shared_ptr_base.h (__shared_ptr::_Deleter): Fix
+       parameter type.
+
 2014-06-25  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/alloc_traits.h (__alloc_rebind): Define alias template.
index 590a8d3cab7d255e39757262370d1ed021c68474..6f85ffad955e68df7b6184a258f46e4ee4338607 100644 (file)
@@ -1085,7 +1085,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       template<typename _Alloc>
         struct _Deleter
         {
-          void operator()(typename _Alloc::pointer __ptr)
+          void operator()(_Tp* __ptr)
           {
            __allocated_ptr<_Alloc> __guard{ _M_alloc, __ptr };
            allocator_traits<_Alloc>::destroy(_M_alloc, __guard.get());