From a1704a82e179d941c5355ae2df4ab2519122cf3b Mon Sep 17 00:00:00 2001 From: Nathaniel Filardo Date: Mon, 18 May 2020 16:40:29 +0000 Subject: [PATCH] ds/dllist: sentinels are always addresses --- src/ds/dllist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ds/dllist.h b/src/ds/dllist.h index 4a7e9c7..915ce1b 100644 --- a/src/ds/dllist.h +++ b/src/ds/dllist.h @@ -17,7 +17,7 @@ namespace snmalloc * are always the same, invalid pointer values with different sentinels are * always different. */ - template + template constexpr bool operator==(const InvalidPointer&) { return Sentinel == OtherSentinel; @@ -27,7 +27,7 @@ namespace snmalloc * are always the same, invalid pointer values with different sentinels are * always different. */ - template + template constexpr bool operator!=(const InvalidPointer&) { return Sentinel != OtherSentinel;