Skip to content

Commit 2c8ad49

Browse files
committed
fix an msvc warning and add a missing include to the asio thread pool test
1 parent 2135150 commit 2c8ad49

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/execpools/asio/asio_thread_pool.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ namespace execpools {
2727

2828
[[nodiscard]]
2929
auto available_parallelism() const -> std::uint32_t {
30-
return asio_impl::query(executor_, asio_impl::execution::occupancy);
30+
return static_cast<std::uint32_t>(
31+
asio_impl::query(executor_, asio_impl::execution::occupancy));
3132
}
3233
private:
3334
[[nodiscard]]

test/execpools/test_asio_thread_pool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <catch2/catch.hpp>
1919

2020
#include <span>
21+
#include <numeric>
2122

2223
#include <stdexec/execution.hpp>
2324

0 commit comments

Comments
 (0)