<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:eric@efcs.ca" title="Eric Fiselier <eric@efcs.ca>"> <span class="fn">Eric Fiselier</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - libc++ problem with std::enable_shared_from_this"
href="https://llvm.org/bugs/show_bug.cgi?id=27115">bug 27115</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>ASSIGNED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>eric@efcs.ca
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - libc++ problem with std::enable_shared_from_this"
href="https://llvm.org/bugs/show_bug.cgi?id=27115#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - libc++ problem with std::enable_shared_from_this"
href="https://llvm.org/bugs/show_bug.cgi?id=27115">bug 27115</a>
from <span class="vcard"><a class="email" href="mailto:eric@efcs.ca" title="Eric Fiselier <eric@efcs.ca>"> <span class="fn">Eric Fiselier</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>