This commit is contained in:
Victor Zverovich
2019-06-15 09:44:51 -07:00
parent e29708ee57
commit 4639843839
2 changed files with 15 additions and 26 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ template <typename Allocator> class allocator_ref {
Allocator* get() const { return alloc_; }
value_type* allocate(std::size_t n) {
return fmt::internal::allocate(*alloc_, n);
return std::allocator_traits<Allocator>::allocate(*alloc_, n);
}
void deallocate(value_type* p, std::size_t n) { alloc_->deallocate(p, n); }
};