Skip to content

multiple definitions of swap from thread_pool.hpp #643

@Plaristote

Description

@Plaristote

Greetings !

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions