Ivan Savenko 12 年 前
コミット
a75d237e93
1 ファイル変更12 行追加13 行削除
  1. 12 13
      lib/Connection.h

+ 12 - 13
lib/Connection.h

@@ -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<>
 {