Skip to content

Commit c017497

Browse files
committed
Merge pull request cpp-netlib#645 from deanberris/fix/multiple-definition-swap
Fix multiple definition swap
2 parents cf080ef + 340e242 commit c017497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boost/network/utils/thread_pool.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ class thread_pool {
9898
sentinel_ptr sentinel_;
9999
};
100100

101-
void swap(thread_pool &a, thread_pool &b) { a.swap(b); }
101+
inline void swap(thread_pool &a, thread_pool &b) { a.swap(b); }
102+
102103
} // namespace utils
103104
} // namespace network
104105
} // namespace boost

0 commit comments

Comments
 (0)