diff --git a/Source/cmArgumentParser.cxx b/Source/cmArgumentParser.cxx index 9a9932c569..751d117f47 100644 --- a/Source/cmArgumentParser.cxx +++ b/Source/cmArgumentParser.cxx @@ -55,7 +55,7 @@ void Instance::Bind(StringList& val) void Instance::Bind(MultiStringList& val) { this->CurrentString = nullptr; - this->CurrentList = (val.emplace_back(), &val.back()); + this->CurrentList = (static_cast(val.emplace_back()), &val.back()); this->ExpectValue = false; }