aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-11 07:32:14 -0700
committerChris Robinson <[email protected]>2019-09-11 07:32:14 -0700
commit14c76ca2447a9c905ffad6898795b2024b1a85f6 (patch)
treecf756c56d5d12b09f7dd466460924dbe5a1ad94b /common
parenta895709b6f67586d4aec3c6f0b276b01899cae86 (diff)
Fix allocator comparison operators
Diffstat (limited to 'common')
-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