ErrorNames is not implemented by vector<string> but *char[]
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index fd9ef16..4956a05 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -476,13 +476,9 @@
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 )