diff options
Diffstat (limited to 'boost/fiber/future/detail/shared_state_object.hpp')
-rw-r--r-- | boost/fiber/future/detail/shared_state_object.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/fiber/future/detail/shared_state_object.hpp b/boost/fiber/future/detail/shared_state_object.hpp index 50e08a6393..02708dfb0d 100644 --- a/boost/fiber/future/detail/shared_state_object.hpp +++ b/boost/fiber/future/detail/shared_state_object.hpp @@ -44,8 +44,9 @@ private: static void destroy_( allocator_type const& alloc, shared_state_object * p) noexcept { allocator_type a{ alloc }; - a.destroy( p); - a.deallocate( p, 1); + typedef std::allocator_traits< allocator_type > traity_type; + traity_type::destroy( a, p); + traity_type::deallocate( a, p, 1); } }; |