ErrorNames is not implemented by vector<string> but *char[]

This commit is contained in:
numatrumpet
2014-09-08 16:36:28 +09:00
parent 8f5d3f8e80
commit 003368429f
3 changed files with 4 additions and 14 deletions

View File

@@ -476,13 +476,9 @@ bool XMLUtil::ToDouble( const char* str, double* value )
return false;
}
std::string XMLUtil::ToErrorName( const XMLError errorID )
const char* 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 )