<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - LWG 3062 Unnecessary decay_t in is_execution_policy_v should be remove_cvref_t"
href="https://bugs.llvm.org/show_bug.cgi?id=41591">41591</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LWG 3062 Unnecessary decay_t in is_execution_policy_v should be remove_cvref_t
</td>
</tr>
<tr>
<th>Product</th>
<td>parallel STL
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>New
</td>
</tr>
<tr>
<th>Assignee</th>
<td>ldionne@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zilla@kayari.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre><a href="https://cplusplus.github.io/LWG/issue3062">https://cplusplus.github.io/LWG/issue3062</a> says to replace std::decay with
std::remove_cvref, which means in the __enable_if_execution_policy helper in
pstl/execution_defs.h:
namespace __internal
{
template <class ExecPolicy, class T>
using __enable_if_execution_policy =
typename std::enable_if<__pstl::execution::is_execution_policy<typename
std::remove_reference<ExecPolicy>::type>::value,
T>::type;
} // namespace __internal
As remove_cvref is only available since C++2a it might have to be typename
remove_cv<typename remove_reference<ExecPolicy>::type>::type instead, but that
should still be more efficient to compile than std::decay.</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>