1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Restore implicit conversion

This commit is contained in:
Ivan Savenko 2023-11-02 19:58:30 +02:00
parent cac37df334
commit f1032063bc

View File

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