[llvm-bugs] [Bug 27115] libc++ problem with std::enable_shared_from_this

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 26 16:57:57 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27115

Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |eric at efcs.ca
         Resolution|---                         |FIXED

--- Comment #5 from Eric Fiselier <eric at efcs.ca> ---
Fixed in r273835.

I fixed this by changing __enable_weak_this to

template <class _Yp, class _OrigPtr>
void __enable_weak_this(const enable_shared_from_this<_Yp>* __e, _OrigPtr*
__ptr)

This way we can perform an upcast to _Yp* using __ptr instead of a downcast
using __e.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160626/8b34ad4b/attachment.html>


More information about the llvm-bugs mailing list