Skip to content

Commit 340e242

Browse files
committed
Fixes #643 -- declare swap to be inline
1 parent c20759e commit 340e242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boost/network/utils/thread_pool.hpp

Lines changed: 2 additions & 1 deletion
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)