mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
compile fix
This commit is contained in:
@ -314,6 +314,18 @@ struct VectorisedObjectInfo
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
si32 idToNumber(const T &t, typename boost::enable_if<boost::is_convertible<T,si32> >::type * dummy = 0)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
si32 idToNumber(const BaseForID<T> &t)
|
||||
{
|
||||
return t.getNum();
|
||||
}
|
||||
|
||||
/// Class which is responsible for storing and loading data.
|
||||
class DLL_LINKAGE CSerializer
|
||||
{
|
||||
@ -442,19 +454,6 @@ struct VectorizedIDType
|
||||
> > > >::type type;
|
||||
};
|
||||
|
||||
|
||||
template<typename T>
|
||||
si32 idToNumber(const T &t, typename boost::enable_if<boost::is_convertible<T,si32> >::type * dummy = 0)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
si32 idToNumber(const BaseForID<T> &t)
|
||||
{
|
||||
return t.getNum();
|
||||
}
|
||||
|
||||
template <typename Handler>
|
||||
struct VariantVisitorSaver : boost::static_visitor<>
|
||||
{
|
||||
|
Reference in New Issue
Block a user