mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Wild stab at getting destruction working on more compilers.
[SVN r49955]
This commit is contained in:
@ -223,7 +223,11 @@ namespace boost {
|
||||
functions func2_;
|
||||
functions_ptr func_; // The currently active functions.
|
||||
};
|
||||
|
||||
|
||||
template <typename T>
|
||||
void destroy(T* x) {
|
||||
x->~T();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@ namespace boost {
|
||||
void destroy(link_ptr ptr)
|
||||
{
|
||||
node* raw_ptr = static_cast<node*>(&*ptr);
|
||||
raw_ptr->value().~value_type();
|
||||
boost::unordered_detail::destroy(&raw_ptr->value());
|
||||
node_ptr n(node_alloc_.address(*raw_ptr));
|
||||
node_alloc_.destroy(n);
|
||||
node_alloc_.deallocate(n, 1);
|
||||
|
Reference in New Issue
Block a user