From 31a6d620e8eab2055dc9756210b597c62e37ee6f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 13 Jun 2018 21:24:12 -0400 Subject: [PATCH] Revokes `make_unique`; I had forgotten that's a C++14 feature. --- OSBindings/SDL/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index 3de19dd0a..942ae3407 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -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(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(value); + arguments.selections[name].reset(new Configurable::ListSelection(value)); } } else { arguments.file_name = arg;