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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy