diff --git a/include/foonathan/memory/std_allocator.hpp b/include/foonathan/memory/std_allocator.hpp index 150d9a62..e5c6acd3 100644 --- a/include/foonathan/memory/std_allocator.hpp +++ b/include/foonathan/memory/std_allocator.hpp @@ -250,12 +250,12 @@ namespace foonathan // any_allocator_reference: use virtual function which already does a dispatch on node/array void* allocate_impl(std::true_type, size_type n) { - return get_allocator()->allocate_impl(n, sizeof(T), alignof(T)); + return get_allocator().allocate_impl(n, sizeof(T), alignof(T)); } void deallocate_impl(std::true_type, void* ptr, size_type n) { - get_allocator()->deallocate_impl(ptr, n, sizeof(T), alignof(T)); + get_allocator().deallocate_impl(ptr, n, sizeof(T), alignof(T)); } // alloc_reference: decide between node/array