Skip to content

Commit

Permalink
Add some inlines to prevent multiple definitions @ compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Ashby committed Nov 15, 2017
1 parent 36d9ad5 commit 65ebee2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scio_beast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ namespace detail {
};
} // end detail ns

const boost::system::error_category& get_scio_error_category() {
inline const boost::system::error_category& get_scio_error_category() {
static detail::scio_error_category instance;
return instance;
}

boost::system::error_code make_error_code(errors e) {
inline boost::system::error_code make_error_code(errors e) {
return boost::system::error_code(static_cast<int>(e), get_scio_error_category());
}

Expand Down Expand Up @@ -389,8 +389,8 @@ class SCChannel {
return std::get<HandlerId>(m_eventTable).connect(std::forward<Args>(args)...);
}

void unsubscribe();
void destroy();
inline void unsubscribe();
inline void destroy();

ChannelState getState() const { return m_state; }

Expand Down Expand Up @@ -1600,4 +1600,4 @@ class SocketClusterClient

} // end scio_beast ns

#endif // SOCKETCLUSTER_IO_BEAST_H
#endif // SOCKETCLUSTER_IO_BEAST_H

0 comments on commit 65ebee2

Please sign in to comment.