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:
parent
73c7d6bc25
commit
906314419f
@ -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.
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user