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:
parent
cac37df334
commit
f1032063bc
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user