1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 15:13:01 +04:00

Using C++11, XMLUtil::ToErrorName(XMLError) returns the name of error type

This commit is contained in:
numatrumpet
2014-09-06 22:56:46 +09:00
parent fb732f97d4
commit bb5ffac22d
3 changed files with 56 additions and 27 deletions
+3
View File
@@ -1222,6 +1222,9 @@ int main( int argc, const char ** argv )
XMLDocument doc;
XMLError error = doc.LoadFile( "resources/empty.xml" );
XMLTest( "Loading an empty file", XML_ERROR_EMPTY_DOCUMENT, error );
#if __cplusplus > 199711LL
XMLTest( "Loading an empty file and ErrorName as string", "XML_ERROR_EMPTY_DOCUMENT", XMLUtil::ToErrorName(error).c_str() );
#endif
}
{