--- deliantra/Deliantra-Client/salloc.h 2018/11/19 01:23:01 1.1 +++ deliantra/Deliantra-Client/salloc.h 2018/11/19 01:37:28 1.2 @@ -12,6 +12,11 @@ slice_allocator (const slice_allocator &) noexcept { } ~slice_allocator () noexcept { } + template + bool operator == (const slice_allocator &) noexcept { return true ; } + template + bool operator != (const slice_allocator &) noexcept { return false; } + Tp *allocate (std::size_t n) { return (Tp *)g_slice_alloc (n * sizeof (Tp)); @@ -23,9 +28,4 @@ } }; -template -bool operator == (const slice_allocator&, const slice_allocator&) noexcept { return true ; } -template -bool operator != (const slice_allocator&, const slice_allocator&) noexcept { return false; } - #endif