diff --git a/include/boost/beast/core/detail/config.hpp b/include/boost/beast/core/detail/config.hpp index 19ef3242..a3ef7f78 100644 --- a/include/boost/beast/core/detail/config.hpp +++ b/include/boost/beast/core/detail/config.hpp @@ -67,13 +67,6 @@ namespace net = boost::asio; # endif #endif -#define BOOST_BEAST_INLINE_VARIABLE(name, type) \ - namespace \ - { \ - constexpr auto& name = \ - ::boost::beast::detail::static_const::value; \ - } - // Default to a header-only implementation. The user must specifically // request separate compilation by defining BOOST_BEAST_SPLIT_COMPILATION #ifndef BOOST_BEAST_HEADER_ONLY diff --git a/include/boost/beast/core/detail/static_const.hpp b/include/boost/beast/core/detail/static_const.hpp index 0724e808..f8582326 100644 --- a/include/boost/beast/core/detail/static_const.hpp +++ b/include/boost/beast/core/detail/static_const.hpp @@ -35,6 +35,13 @@ struct static_const template constexpr T static_const::value; +#define BOOST_BEAST_INLINE_VARIABLE(name, type) \ + namespace \ + { \ + constexpr auto& name = \ + ::boost::beast::detail::static_const::value; \ + } + } // detail } // beast } // boost