Skip to content

Commit a111740

Browse files
committed
Ensure __decay builtin is not part of function signatures.
1 parent 15dcdbc commit a111740

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/stdexec/__detail/__type_traits.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ namespace stdexec {
3030
// __decay_t: An efficient implementation for std::decay
3131
#if STDEXEC_HAS_BUILTIN(__decay)
3232

33+
namespace __tt {
34+
template <class _Ty>
35+
struct __decay {
36+
using type = __decay(_Ty);
37+
};
38+
} // namespace __tt
3339
template <class _Ty>
34-
using __decay_t = __decay(_Ty);
40+
using __decay_t = typename __tt::__decay<_Ty>::type;
3541

3642
#elif STDEXEC_NVHPC()
3743

0 commit comments

Comments
 (0)