[PATCH] D19254: Implement P0033R1 - Re-enabling shared_from_this

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 11:25:50 PDT 2016


mclow.lists added a comment.

Other than the versioning, this looks fine to me.


================
Comment at: include/memory:5439
@@ -5438,1 +5438,3 @@
 
+    _LIBCPP_INLINE_VISIBILITY
+    weak_ptr<_Tp> weak_from_this() _NOEXCEPT
----------------
Shouldn't these be wrapped in `#ifdef _LIBCPP_VER > 14` ?

================
Comment at: test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp:59
@@ -52,1 +58,3 @@
     }
+    // Test weak_from_this_methods
+    {
----------------
These too - C++17 only?


http://reviews.llvm.org/D19254





More information about the cfe-commits mailing list