Skip to content

Commit 0e615bc

Browse files
committed
work around gcc-12 bug
1 parent 4a2dfa4 commit 0e615bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/stdexec/__detail/__sender_concepts.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ namespace STDEXEC
5454
&& __std::move_constructible<__decay_t<_Sender>>
5555
&& __std::constructible_from<__decay_t<_Sender>, _Sender>;
5656

57+
#if STDEXEC_GCC() && STDEXEC_GCC_VERSION < 1300
58+
template <auto _Completions>
59+
inline constexpr bool __constant_completion_signatures_v =
60+
__valid_completion_signatures<std::remove_const_t<decltype(_Completions)>>;
61+
#else
5762
template <auto _Completions>
5863
inline constexpr bool __constant_completion_signatures_v =
5964
__valid_completion_signatures<decltype(_Completions)>;
65+
#endif
6066

6167
template <class _Sender, class... _Env>
6268
concept sender_in =

0 commit comments

Comments
 (0)