Skip to content

Commit 46dc359

Browse files
committed
Use explicit constructor to avoid implicit conversions
1 parent a0d5f8b commit 46dc359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThreadPool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ThreadPool {
99
public:
10-
ThreadPool(size_t);
10+
explicit ThreadPool(size_t);
1111
template<class F, class... Args>
1212
auto enqueue(F&& f, Args&&... args)
1313
-> std::future<std::invoke_result_t<F, Args...>>;

0 commit comments

Comments
 (0)