Using C++11, XMLUtil::ToErrorName(XMLError) returns the name of error type
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user