forked from boostorg/smart_ptr
Fix get_deleter in allocate_shared_array.hpp
This commit is contained in:
@ -762,8 +762,8 @@ public:
|
||||
allocator.deallocate(this, 1);
|
||||
}
|
||||
|
||||
void* get_deleter(const sp_typeinfo&) {
|
||||
return &reinterpret_cast<char&>(deleter_);
|
||||
void* get_deleter(const sp_typeinfo& ti) {
|
||||
return ti == BOOST_SP_TYPEID(deleter_type)? &reinterpret_cast<char&>(deleter_): 0;
|
||||
}
|
||||
|
||||
void* get_untyped_deleter() {
|
||||
@ -803,8 +803,8 @@ public:
|
||||
allocator.deallocate(this, 1);
|
||||
}
|
||||
|
||||
void* get_deleter(const sp_typeinfo&) {
|
||||
return &reinterpret_cast<char&>(deleter_);
|
||||
void* get_deleter(const sp_typeinfo& ti) {
|
||||
return ti == BOOST_SP_TYPEID(deleter_type)? &reinterpret_cast<char&>(deleter_): 0;
|
||||
}
|
||||
|
||||
void* get_untyped_deleter() {
|
||||
@ -849,8 +849,8 @@ public:
|
||||
allocator.deallocate(this, 1);
|
||||
}
|
||||
|
||||
void* get_deleter(const sp_typeinfo&) {
|
||||
return &reinterpret_cast<char&>(deleter_);
|
||||
void* get_deleter(const sp_typeinfo& ti) {
|
||||
return ti == BOOST_SP_TYPEID(deleter_type)? &reinterpret_cast<char&>(deleter_): 0;
|
||||
}
|
||||
|
||||
void* get_untyped_deleter() {
|
||||
@ -894,8 +894,8 @@ public:
|
||||
allocator.deallocate(this, 1);
|
||||
}
|
||||
|
||||
void* get_deleter(const sp_typeinfo&) {
|
||||
return &reinterpret_cast<char&>(deleter_);
|
||||
void* get_deleter(const sp_typeinfo& ti) {
|
||||
return ti == BOOST_SP_TYPEID(deleter_type)? &reinterpret_cast<char&>(deleter_): 0;
|
||||
}
|
||||
|
||||
void* get_untyped_deleter() {
|
||||
|
Reference in New Issue
Block a user