shared_ptr_base.h (__shared_ptr::_Deleter): Fix parameter type.

* include/bits/shared_ptr_base.h (__shared_ptr::_Deleter): Fix
	parameter type.

From-SVN: r212027
This commit is contained in:
Jonathan Wakely 2014-06-26 13:43:59 +01:00 committed by Jonathan Wakely
parent 73c7d6bc25
commit 906314419f
2 changed files with 6 additions and 1 deletions

View 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.

View 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());