From 7106ed22d9f7d7b2df600f7409a5b149ad0c6ca0 Mon Sep 17 00:00:00 2001
From: EndrII <EndrIIMail@gmail.com>
Date: Sun, 27 Dec 2020 16:26:42 +0300
Subject: [PATCH] remove the  !operator for enum classes it is not secure

---
 global.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/global.h b/global.h
index 4724f6b..889959e 100644
--- a/global.h
+++ b/global.h
@@ -74,16 +74,6 @@ constexpr inline T operator ^ (T lhs, T rhs)
     return static_cast<T>(static_cast<int>(lhs) ^ static_cast<int>(rhs));
 }
 
-template <typename T>
-constexpr inline bool operator ! (T lhs)
-{
-
-    static_assert(std::is_enum<T>::value,
-                  "template parameter is not an enum type");
-
-    return !static_cast<bool>(lhs);
-}
-
 
 // TO DO need to testing. I am think this is does not work.
 //template <class IntegerType>