From 65ebee2b99da2cedd489aa36fdbb8d97773b235c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 15 Nov 2017 16:04:53 -0700 Subject: [PATCH] Add some inlines to prevent multiple definitions @ compile --- src/scio_beast.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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