From 24b861f056a189c218ce7aa97e589cb51e0d280b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 15 Jul 2018 22:52:36 -0400 Subject: [PATCH] Eliminates `make_unique` as this is presently a C++11 project. --- OSBindings/SDL/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index e0bba7fb0..dff709c4e 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -105,7 +105,8 @@ class ActivityObserver: public Activity::Observer { const float right_x = 1.0f - 2.0f * width; float y = 1.0f - 2.0f * height; for(const auto &drive: drives_) { - lights_.emplace(std::make_pair(drive, std::make_unique(right_x, y, width, height))); + // TODO: use std::make_unique as below, if/when formally embracing C++14. + lights_.emplace(std::make_pair(drive, std::unique_ptr(new OpenGL::Rectangle(right_x, y, width, height)))); y -= height * 2.0f; }