From 871a0238771946b6268076eb387ce103bbcfadda Mon Sep 17 00:00:00 2001 From: atyuwen Date: Fri, 30 Oct 2020 17:30:46 +0800 Subject: [PATCH] fixed compile error with -std=c++20 --- spirv_common.hpp | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/spirv_common.hpp b/spirv_common.hpp index 53df3761..c69c052b 100644 --- a/spirv_common.hpp +++ b/spirv_common.hpp @@ -357,28 +357,6 @@ public: return TypedID(*this); } - bool operator==(const TypedID &other) const - { - return id == other.id; - } - - bool operator!=(const TypedID &other) const - { - return id != other.id; - } - - template - bool operator==(const TypedID &other) const - { - return id == uint32_t(other); - } - - template - bool operator!=(const TypedID &other) const - { - return id != uint32_t(other); - } - private: uint32_t id = 0; }; @@ -403,26 +381,6 @@ public: return id; } - bool operator==(const TypedID &other) const - { - return id == other.id; - } - - bool operator!=(const TypedID &other) const - { - return id != other.id; - } - - bool operator==(const TypedID &other) const - { - return id == uint32_t(other); - } - - bool operator!=(const TypedID &other) const - { - return id != uint32_t(other); - } - private: uint32_t id = 0; };