summaryrefslogtreecommitdiff
path: root/boost/fiber/future/detail/shared_state_object.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fiber/future/detail/shared_state_object.hpp')
-rw-r--r--boost/fiber/future/detail/shared_state_object.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/boost/fiber/future/detail/shared_state_object.hpp b/boost/fiber/future/detail/shared_state_object.hpp
index dcdafef65c..50e08a6393 100644
--- a/boost/fiber/future/detail/shared_state_object.hpp
+++ b/boost/fiber/future/detail/shared_state_object.hpp
@@ -27,10 +27,11 @@ class shared_state_object : public shared_state< R > {
public:
typedef typename std::allocator_traits< Allocator >::template rebind_alloc<
shared_state_object
- > allocator_t;
+ > allocator_type;
- shared_state_object( allocator_t const& alloc) :
- shared_state< R >(), alloc_( alloc) {
+ shared_state_object( allocator_type const& alloc) :
+ shared_state< R >{},
+ alloc_{ alloc } {
}
protected:
@@ -39,10 +40,10 @@ protected:
}
private:
- allocator_t alloc_;
+ allocator_type alloc_;
- static void destroy_( allocator_t const& alloc, shared_state_object * p) noexcept {
- allocator_t a{ alloc };
+ static void destroy_( allocator_type const& alloc, shared_state_object * p) noexcept {
+ allocator_type a{ alloc };
a.destroy( p);
a.deallocate( p, 1);
}