1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 12:16:40 +08:00

cmStandardLevelResolver: Fix size assertion in constructor

Assert sizes of the constructed vectors, not the moved-from inputs.
This commit is contained in:
Brad King
2021-06-03 14:51:14 -04:00
parent 82584b99e3
commit 410bf8ed4f

View File

@@ -62,7 +62,7 @@ struct StanardLevelComputer
, Levels(std::move(levels))
, LevelsAsStrings(std::move(levelsStr))
{
assert(levels.size() == levelsStr.size());
assert(this->Levels.size() == this->LevelsAsStrings.size());
}
std::string GetCompileOptionDef(cmMakefile* makefile,