Skip to content

Commit 0c0e7e5

Browse files
committed
🎨 Fix accidental constexpr function
Problem: - In the trigger scheduler tests, `debug_handler::signal` is accidentally marked `constexpr`. Prior to C++23, `constexpr` functions cannot have non-literal local variables (like `std::lock_guard`. There is no reason for this function to be accidentally C++23 only. Solution: - Remove the `constexpr` qualification.
1 parent efda8da commit 0c0e7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/schedulers/trigger_scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ struct debug_handler {
170170
std::mutex m;
171171

172172
template <stdx::ct_string C, stdx::ct_string S, typename Ctx>
173-
constexpr auto signal(auto &&...) {
173+
auto signal(auto &&...) {
174174
if constexpr (std::is_same_v<async::debug::tag_of<Ctx>,
175175
async::trigger_scheduler_sender_t>) {
176176
static_assert(

0 commit comments

Comments
 (0)