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

View File

@@ -476,6 +476,14 @@ bool XMLUtil::ToDouble( const char* str, double* value )
return false;
}
std::string XMLUtil::ToErrorName( const XMLError errorID )
{
#if __cplusplus > 199711LL
return ErrorNames[errorID];
#else
return std::string("Use C++11 or higher to use this function");
#endif
}
char* XMLDocument::Identify( char* p, XMLNode** node )
{