Skip to content

Commit

Permalink
workaround for pair comparison operator on gcc-12.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Nov 26, 2024
1 parent 7a8f383 commit e69138f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/race.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ CO_TEST_CASE(dummy_result)
std::vector<cobalt::promise<std::size_t>> vec;
vec.push_back([]() -> cobalt::promise<std::size_t> { co_return 42u;}());

BOOST_CHECK((co_await cobalt::as_result(race(vec))).value() == std::pair(0u, 42u));
const std::pair<std::size_t, std::size_t> cmp(0u, 42u);
BOOST_CHECK((co_await cobalt::as_result(race(vec))).value() == cmp);
}


Expand Down

0 comments on commit e69138f

Please sign in to comment.