Direct-init instead of copy-init
MODIFY
src/vcpkg/commands.fetch.cpp
src/vcpkg/commands.fetch.cpp
@@ -816,7 +816,7 @@ namespace vcpkg::Commands::Fetch
paths_examined.push_back(dumpbin_path);
if (fs.exists(dumpbin_path))
{
- const Toolset v141toolset = Toolset{
+ const Toolset v141toolset{
vs_instance.root_path, dumpbin_path, vcvarsall_bat, {}, V_141, supported_architectures};
auto english_language_pack = dumpbin_path.parent_path() / "1033";
@@ -831,7 +831,7 @@ namespace vcpkg::Commands::Fetch
if (v140_is_available)
{
- const Toolset v140toolset = Toolset{vs_instance.root_path,
+ const Toolset v140toolset{vs_instance.root_path,
dumpbin_path,
vcvarsall_bat,
{"-vcvars_ver=14.0"},

Direct-init instead of copy-init