diff --git a/lib/Connection.h b/lib/Connection.h index 08b81bdcd..75651093a 100644 --- a/lib/Connection.h +++ b/lib/Connection.h @@ -314,6 +314,18 @@ struct VectorisedObjectInfo } }; +template +si32 idToNumber(const T &t, typename boost::enable_if >::type * dummy = 0) +{ + return t; +} + +template +si32 idToNumber(const BaseForID &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 -si32 idToNumber(const T &t, typename boost::enable_if >::type * dummy = 0) -{ - return t; -} - -template -si32 idToNumber(const BaseForID &t) -{ - return t.getNum(); -} - template struct VariantVisitorSaver : boost::static_visitor<> {