1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Serializer: serialize small bitsets (32 bits)

This commit is contained in:
Konstantin P
2023-05-05 12:56:11 +03:00
parent 6ff83e6f16
commit e9a90a8cbf
3 changed files with 44 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ struct VectorizedObjectInfo
class DLL_LINKAGE CSerializer
{
template<typename T>
static si32 idToNumber(const T &t, typename boost::enable_if<boost::is_convertible<T,si32> >::type * dummy = 0)
static si32 idToNumber(const T &t, typename std::enable_if<std::is_convertible<T,si32>::value>::type * dummy = 0)
{
return t;
}