Move macro from config.hpp

This commit is contained in:
Vinnie Falco
2019-03-01 10:47:09 -08:00
parent df93a8dbf1
commit a3f0ea3573
2 changed files with 7 additions and 7 deletions

View File

@@ -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<type>::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

View File

@@ -35,6 +35,13 @@ struct static_const
template<typename T>
constexpr T static_const<T>::value;
#define BOOST_BEAST_INLINE_VARIABLE(name, type) \
namespace \
{ \
constexpr auto& name = \
::boost::beast::detail::static_const<type>::value; \
}
} // detail
} // beast
} // boost