Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorgreshilov <slovaricheg@gmail.com>2018-01-22 20:43:26 +0300
committermgsergio <mgsergio@yandex.ru>2018-01-29 17:01:06 +0300
commit38de57a77a28a1484dc9b3e2b762a5dfe33f2890 (patch)
treeb66bb1c9af8d94861a0ed629b29b0f5ded1c6334 /std
parent2b5a6cf37f67a50096aaa1a28128d21549d05922 (diff)
[cmake] Adding c++14 support
- Fix XCode build - Remove old compile opt from skin_generator project
Diffstat (limited to 'std')
-rw-r--r--std/unique_ptr.hpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/std/unique_ptr.hpp b/std/unique_ptr.hpp
index 536fa25230..a8f198b8fd 100644
--- a/std/unique_ptr.hpp
+++ b/std/unique_ptr.hpp
@@ -6,14 +6,7 @@
#include <memory>
using std::unique_ptr;
-
-/// @todo(y): replace this hand-written helper function by
-/// std::make_unique when it will be available in C++14
-template <typename T, typename... Args>
-unique_ptr<T> make_unique(Args &&... args)
-{
- return unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
+using std::make_unique;
#ifdef DEBUG_NEW
#define new DEBUG_NEW