<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/148546>148546</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
swap overload for observer_ptr is not constexpr
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jwakely
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/blob/cac806bcc5b3367ca7573c2c5ae590379d89b84f/libcxx/test/std/experimental/memory/memory.observer.ptr/swap.pass.cpp#L54
This test checks that swap is constexpr, which is not the case in the TS:
https://cplusplus.github.io/fundamentals-ts/v3.html#memory.observer.ptr.special
Is this testing an extension?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUksGOmzAQhp_GXKxFzhgHOHBIWyFV6q17r2wzBO862PKYJPv2ldnNVpV66QExAvvXp29-TeTOK-LA1BemvlV6y0tIw8tNv6J_q0yY3oYl50hMnhiMDMazy8tmahsuDEbvr4_XU0zhBW1mMBofDIPRatuJo7FWGSmPrdWtaqUFqzSqXsi2n7redM1cApyx9zuDMSOVBMoTgxHvEZO74Jq1ZzBe8BLS2-dQB0OYrpjqmFO5c9OxjpqotjEykD9Uw8SJidPz4oiXYG4XtK_E86IzL8e5I27DShnvMTH4ym-Ls0v5uobM84LcakLu1n1-_lkkiNPfPmz0G5Wn_jDjAoNx3tZJv5PTUyYG41XWS754BvIf-DVFtE77d-DvBfGD2a1nrleO94wrubAyOVbTIKde9rrC4dAqaGQnj1Atg7J2bg-AcpZi7vpjN6GQpldtdxC2V6pyAwhQoj1IEHAUUKtW49yLaVKdQtkCawRetPN12Wgd0rlyRBsOh6ZTzbHy2qCnvSsAK974_pcBlOqkYa-B2c7EGuEdZfoTk132OOzOwxWTD3ric0j8IeFXzOnh_XMj1Zb8_7dvZyrGP6CvA_wOAAD__wHh9O4">