Skip to content

Commit 193a0ad

Browse files
authored
Apply suggestions from code review
1 parent 4836a83 commit 193a0ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/stdexec/__detail/__type_traits.hpp

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

3333
namespace __tt {
34+
template <class>
35+
struct __wrap;
36+
3437
template <bool>
3538
struct __decay_ {
3639
template <class _Ty>
3740
using __f = __decay(_Ty);
3841
};
3942
} // namespace __tt
4043
template <class _Ty>
41-
using __decay_t = typename __tt::__decay_<sizeof(__declval<_Ty>) == ~0ul>::template __f<_Ty>;
44+
using __decay_t = typename __tt::__decay_<sizeof(__tt::__wrap<_Ty>*) == ~0ul>::template __f<_Ty>;
4245

4346
#elif STDEXEC_NVHPC()
4447

0 commit comments

Comments
 (0)