From 20d91969fe6ae65ab5c786dbea5e72ddc04ac5fe Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Fri, 30 Aug 2024 14:02:39 +0200 Subject: [PATCH] remove workaround for C++17 --- EDM4hepVersion.h.in | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/EDM4hepVersion.h.in b/EDM4hepVersion.h.in index 2949e2a04..60368cc9e 100644 --- a/EDM4hepVersion.h.in +++ b/EDM4hepVersion.h.in @@ -2,12 +2,7 @@ #define EDM4HEP_VERSION_H #include -#include #include -#if __cplusplus >= 202002L -#include -#endif - // Some preprocessor constants and macros for the use cases where they might be // necessary @@ -41,24 +36,7 @@ namespace edm4hep::version { uint16_t minor{0}; uint16_t patch{0}; -#if __cplusplus >= 202002L auto operator<=>(const Version&) const = default; -#else -// No spaceship yet in c++17 -#define DEFINE_COMP_OPERATOR(OP) \ - constexpr bool operator OP(const Version& o) const noexcept { \ - return std::tie(major, minor, patch) OP std::tie(o.major, o.minor, o.patch); \ - } - - DEFINE_COMP_OPERATOR(<) - DEFINE_COMP_OPERATOR(<=) - DEFINE_COMP_OPERATOR(>) - DEFINE_COMP_OPERATOR(>=) - DEFINE_COMP_OPERATOR(==) - DEFINE_COMP_OPERATOR(!=) - -#undef DEFINE_COMP_OPERATOR -#endif friend std::ostream& operator<<(std::ostream&, const Version& v); };