diff --git a/src/scio_beast.hpp b/src/scio_beast.hpp index c789968..1d4a0e8 100644 --- a/src/scio_beast.hpp +++ b/src/scio_beast.hpp @@ -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(e), get_scio_error_category()); } @@ -389,8 +389,8 @@ class SCChannel { return std::get(m_eventTable).connect(std::forward(args)...); } - void unsubscribe(); - void destroy(); + inline void unsubscribe(); + inline void destroy(); ChannelState getState() const { return m_state; } @@ -1600,4 +1600,4 @@ class SocketClusterClient } // end scio_beast ns -#endif // SOCKETCLUSTER_IO_BEAST_H \ No newline at end of file +#endif // SOCKETCLUSTER_IO_BEAST_H