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))); }