浏览代码

mac compilation correction - verve templates order of operation compiles

Brian Roberts 6 年之前
父节点
当前提交
9592275fb8
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      Engine/source/Verve/Core/Persistence/VPersistence.h

+ 6 - 5
Engine/source/Verve/Core/Persistence/VPersistence.h

@@ -48,6 +48,8 @@ namespace VPersistence
 
     //-------------------------------------------------------------------------
 
+    template <class T> bool write( TiXmlElement *pElement, T *pObject );
+    
     template <class T> bool writeFile( const char* pFileName, T *pObject )
     {
         // Create Doc.
@@ -73,7 +75,6 @@ namespace VPersistence
         return xmlDocument.SaveFile( pFileName );
     };
 
-    template <class T> bool write( TiXmlElement *pElement, T *pObject );
     
     template <class T> bool writeProperties( TiXmlElement *pElement, T *pObject )
     {
@@ -141,7 +142,9 @@ namespace VPersistence
     }
 
     //-------------------------------------------------------------------------
-
+    
+    template <class T> bool read( TiXmlElement *pElement, T *pObject );
+    
     template <class T> bool readFile( const char* pFileName, T *pObject )
     {
         TiXmlDocument xmlDocument;
@@ -176,8 +179,6 @@ namespace VPersistence
         return true;
     };
 
-    template <class T> bool read( TiXmlElement *pElement, T *pObject );
-
     template <class T> bool readProperties( TiXmlElement *pElement, T *pObject )
     {
         TiXmlElement *propertyRoot = pElement->FirstChildElement( "Properties" );
@@ -283,4 +284,4 @@ namespace VPersistence
 
 //-----------------------------------------------------------------------------
 
-#endif // _VT_VPERSISTENCE_H_
+#endif // _VT_VPERSISTENCE_H_