1
0

Move make_unique into a namespace to avoid ADL issues

this prevents VS finding std::make_unique for constructors that take types from std
This commit is contained in:
tycho
2015-05-15 13:57:27 +01:00
parent b9efa02c80
commit c96849f431
4 changed files with 15 additions and 11 deletions

View File

@@ -376,7 +376,7 @@ std::unique_ptr<cMemorySettingsRepository> parseArguments(int argc, char **argv)
int slots = slotsArg.getValue();
auto repo = make_unique<cMemorySettingsRepository>();
auto repo = cpp14::make_unique<cMemorySettingsRepository>();
repo->SetValueI("Server", "MaxPlayers", slots);