aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/almalloc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/almalloc.h b/common/almalloc.h
index 232294cc..37b57d2b 100644
--- a/common/almalloc.h
+++ b/common/almalloc.h
@@ -72,10 +72,10 @@ struct allocator {
}
void deallocate(T *p, std::size_t) noexcept { al_free(p); }
};
-template<typename T, typename U>
-bool operator==(const allocator<T>&, const allocator<U>&) noexcept { return true; }
-template<typename T, typename U>
-bool operator!=(const allocator<T>&, const allocator<U>&) noexcept { return false; }
+template<typename T, std::size_t N, typename U, std::size_t M>
+bool operator==(const allocator<T,N>&, const allocator<U,M>&) noexcept { return true; }
+template<typename T, std::size_t N, typename U, std::size_t M>
+bool operator!=(const allocator<T,N>&, const allocator<U,M>&) noexcept { return false; }
template<size_t alignment, typename T>
inline T* assume_aligned(T *ptr) noexcept