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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user