Skip to content

Commit cfe2ced

Browse files
committed
Addressing multiple definition bug for boost::network::swap.
Because of the missing inline, template resolution causes the multiple definitions of swap cause problems in different compilation units at link time.
1 parent 01313fb commit cfe2ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace boost { namespace network {
9393
};
9494

9595
template <class Tag>
96-
void swap(basic_message<Tag> & left, basic_message<Tag> & right) {
96+
inline void swap(basic_message<Tag> & left, basic_message<Tag> & right) {
9797
// swap for ADL
9898
left.swap(right);
9999
}

0 commit comments

Comments
 (0)