Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.

llvm-svn: 154041
This commit is contained in:
Greg Clayton 2012-04-04 20:03:33 +00:00
parent dc53f0094b
commit 3c18cd3de1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>