summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-12-03 11:27:24 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-12-03 11:27:24 +0100
commit82f3574d09064a442e30eb2dc7639f473749c5bd (patch)
treedfb0aa6182a0d7d04b6131199d67ff90a87cb9c1 /include/mbgl/platform
parent50669307c5648e62941a63e0c75dba8602448d9d (diff)
downloadqtlocation-mapboxgl-82f3574d09064a442e30eb2dc7639f473749c5bd.tar.gz
add array overloads to make_unique and move it to mbgl::util from std
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/log.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/platform/log.hpp b/include/mbgl/platform/log.hpp
index 406b3eea37..418160d3ee 100644
--- a/include/mbgl/platform/log.hpp
+++ b/include/mbgl/platform/log.hpp
@@ -3,6 +3,8 @@
#include "event.hpp"
+#include <mbgl/util/std.hpp>
+
#include <memory>
#include <string>
@@ -58,7 +60,7 @@ public:
template<typename T, typename ...Args>
static inline const T &Set(Args&& ...args) {
- Backend = ::std::unique_ptr<T>(new T(::std::forward<Args>(args)...));
+ Backend = util::make_unique<T>(::std::forward<Args>(args)...);
return *dynamic_cast<T *>(Backend.get());
}