Browse Source

Restore implicit conversion

Ivan Savenko 2 years ago
parent
commit
f1032063bc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lib/constants/IdentifierBase.h

+ 5 - 0
lib/constants/IdentifierBase.h

@@ -52,6 +52,11 @@ public:
 		num += change;
 		num += change;
 	}
 	}
 
 
+	constexpr operator int32_t () const
+	{
+		return num;
+	}
+
 	friend std::ostream& operator<<(std::ostream& os, const IdentifierBase& dt)
 	friend std::ostream& operator<<(std::ostream& os, const IdentifierBase& dt)
 	{
 	{
 		return os << dt.num;
 		return os << dt.num;