From 568c07521f77e6baca0f79cd05aa97ce14cf6490 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 18 Sep 2016 19:24:56 +0200 Subject: [PATCH] update allocator api --- include/cubescript/cubescript.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index 145889c..1f58554 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -340,7 +340,7 @@ struct CsAllocator { template CsAllocator(CsAllocator const &a) noexcept: p_state(a.p_state) {} - T *allocate(ostd::Size n, void const * = nullptr); + T *allocate(ostd::Size n); void deallocate(T *p, ostd::Size n) noexcept; bool operator==(CsAllocator const &o) const noexcept { @@ -672,7 +672,7 @@ private: }; template -T *CsAllocator::allocate(ostd::Size n, void const *) { +T *CsAllocator::allocate(ostd::Size n) { return static_cast(p_state.alloc(nullptr, 0, n * sizeof(T))); }