summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-10 15:39:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-10 15:39:32 +0200
commitcdacaf690a48a3cc1549d9c6e57de2100dc1fc21 (patch)
treeb1f73c02b687f7f1ca139e0399eaf7a17b9000ae
parentacf53881d880f1a76b1eb799263dc1b2550ad485 (diff)
compat/options: add here unique_ptr defs
-rw-r--r--opentrack-compat/options.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index 79cdc6e5..78699f63 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -46,6 +46,8 @@
// just put them here for lack of util header
#define progn(...) ([&]() { __VA_ARGS__ }())
template<typename t> using mem = std::shared_ptr<t>;
+template<typename t> using ptr = std::unique_ptr<t>;
+#include "make-unique.hpp"
#define OPENTRACK_CONFIG_FILENAME_KEY "settings-filename"
#define OPENTRACK_DEFAULT_CONFIG "default.ini"