mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Restore implicit conversion
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user