Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.
llvm-svn: 154041
This commit is contained in:
parent
dc53f0094b
commit
3c18cd3de1
|
@ -17,7 +17,7 @@
|
|||
#ifdef _LIBCPP_VERSION
|
||||
#include <memory>
|
||||
#define STD_SHARED_PTR(T) std::shared_ptr<T>
|
||||
#define STD_WEAK_PTR(T) std::shared_ptr<T>
|
||||
#define STD_WEAK_PTR(T) std::weak_ptr<T>
|
||||
#define STD_ENABLE_SHARED_FROM_THIS(T) std::enable_shared_from_this<T>
|
||||
#define STD_STATIC_POINTER_CAST(T,V) std::static_pointer_cast<T>(V)
|
||||
#else
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifdef _LIBCPP_VERSION
|
||||
#include <memory>
|
||||
#define STD_SHARED_PTR(T) std::shared_ptr<T>
|
||||
#define STD_WEAK_PTR(T) std::shared_ptr<T>
|
||||
#define STD_WEAK_PTR(T) std::weak_ptr<T>
|
||||
#define STD_ENABLE_SHARED_FROM_THIS(T) std::enable_shared_from_this<T>
|
||||
#else
|
||||
#include <tr1/memory>
|
||||
|
|
Loading…
Reference in New Issue