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:
authorAlex Zolotarev <alex@mapswithme.com>2014-08-08 07:52:11 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:25:04 +0300
commit1c8675c1d55fdf66b64b06f7e736b557ae533298 (patch)
treec6e849c39bfaaae29d11956bdbdf3a77f17173b7 /std
parentbaf239aef8bfbc76b2e1b09c5dc59b8463160a3b (diff)
[cpp11] make_shared_ptr -> std::make_shared
Diffstat (limited to 'std')
-rw-r--r--std/shared_ptr.hpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/std/shared_ptr.hpp b/std/shared_ptr.hpp
index 9d08b751a0..fd70c8f731 100644
--- a/std/shared_ptr.hpp
+++ b/std/shared_ptr.hpp
@@ -9,6 +9,7 @@
#include <memory>
using std::shared_ptr;
+using std::make_shared;
#else
@@ -19,18 +20,6 @@ using boost::static_pointer_cast;
#endif
-template <typename T>
-inline shared_ptr<T> make_shared_ptr(T * t)
-{
- return shared_ptr<T>(t);
-}
-
-template <typename T, typename U>
-inline shared_ptr<T> make_shared_ptr(T * t, U u)
-{
- return shared_ptr<T>(t, u);
-}
-
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif