Use std::string for TBD/missing functionality reporting.

We can have multiple instances of the same string, so comparing
const char* is not guaranteed working.

Fixed the failure on VS 2013 with Debug build.
This commit is contained in:
Lei Zhang
2016-05-10 10:22:48 -04:00
parent f36d6e350e
commit cb3236d9f9
2 changed files with 6 additions and 6 deletions

View File

@@ -40,13 +40,13 @@
namespace spv {
void SpvBuildLogger::tbdFunctionality(const char* f)
void SpvBuildLogger::tbdFunctionality(const std::string& f)
{
if (std::find(std::begin(tbdFeatures), std::end(tbdFeatures), f) == std::end(tbdFeatures))
tbdFeatures.push_back(f);
}
void SpvBuildLogger::missingFunctionality(const char* f)
void SpvBuildLogger::missingFunctionality(const std::string& f)
{
if (std::find(std::begin(missingFeatures), std::end(missingFeatures), f) == std::end(missingFeatures))
missingFeatures.push_back(f);