1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-30 22:56:03 +00:00

Revokes make_unique; I had forgotten that's a C++14 feature.

This commit is contained in:
Thomas Harte 2018-06-13 21:24:12 -04:00
parent dfd37e7dec
commit 31a6d620e8

View File

@ -156,11 +156,11 @@ ParsedArguments parse_arguments(int argc, char *argv[]) {
std::size_t split_index = argument.find("=");
if(split_index == std::string::npos) {
arguments.selections[argument] = std::make_unique<Configurable::BooleanSelection>(true);
arguments.selections[argument].reset(new Configurable::BooleanSelection(true));
} else {
std::string name = argument.substr(0, split_index);
std::string value = argument.substr(split_index+1, std::string::npos);
arguments.selections[name] = std::make_unique<Configurable::ListSelection>(value);
arguments.selections[name].reset(new Configurable::ListSelection(value));
}
} else {
arguments.file_name = arg;