[Lldb-commits] [lldb] r154041 - in /lldb/trunk: include/lldb/lldb-forward.h tools/debugserver/source/DNBDefs.h
Greg Clayton
gclayton at apple.com
Wed Apr 4 13:03:33 PDT 2012
Author: gclayton
Date: Wed Apr 4 15:03:33 2012
New Revision: 154041
URL: http://llvm.org/viewvc/llvm-project?rev=154041&view=rev
Log:
Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.
Modified:
lldb/trunk/include/lldb/lldb-forward.h
lldb/trunk/tools/debugserver/source/DNBDefs.h
Modified: lldb/trunk/include/lldb/lldb-forward.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/lldb-forward.h?rev=154041&r1=154040&r2=154041&view=diff
==============================================================================
--- lldb/trunk/include/lldb/lldb-forward.h (original)
+++ lldb/trunk/include/lldb/lldb-forward.h Wed Apr 4 15:03:33 2012
@@ -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
Modified: lldb/trunk/tools/debugserver/source/DNBDefs.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNBDefs.h?rev=154041&r1=154040&r2=154041&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNBDefs.h (original)
+++ lldb/trunk/tools/debugserver/source/DNBDefs.h Wed Apr 4 15:03:33 2012
@@ -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>
More information about the lldb-commits
mailing list