Skip to content

Commit 9e60ba8

Browse files
authored
reduce t
1 parent a111740 commit 9e60ba8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/stdexec/__detail/__type_traits.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@ namespace stdexec {
3131
#if STDEXEC_HAS_BUILTIN(__decay)
3232

3333
namespace __tt {
34-
template <class _Ty>
35-
struct __decay {
36-
using type = __decay(_Ty);
34+
template <bool>
35+
struct __decay_ {
36+
template <class _Ty>
37+
using __f = __decay(_Ty);
3738
};
3839
} // namespace __tt
3940
template <class _Ty>
40-
using __decay_t = typename __tt::__decay<_Ty>::type;
41+
using __decay_t = typename __tt::__decay_<sizeof(_Ty) == ~0ul>::template __f<_Ty>;
4142

4243
#elif STDEXEC_NVHPC()
4344

0 commit comments

Comments
 (0)