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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user