You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
multiple definitions of swap from thread_pool.hpp #643
In boost/network/utils/thread_pool.hpp, line 101, there's global swap function that gets declared. The problem is, it's not inline, and the compiler complains about multiple definition for each target that includes thread_pool.hpp.
Seeing the history, this function used to be a template, 20 days ago or so. As a template, this issue wouldn't happen: but as a global function, we have to either declare it as inline, or define it away from the headers.
As far as I know, there's no other way to go around that.
Activity
deanberris commentedon Apr 25, 2016
Oops. You're right. I'm fine with making it
inline. I'll get to this soon enough.deanberris commentedon Apr 25, 2016
@Plaristote -- this is in the master branch, yes?
Fixes #643 -- declare swap to be inline