Browse Source

mac compilation correction - verve templates order of operation compiles

Brian Roberts 6 năm trước cách đây
mục cha
commit
9592275fb8

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