mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Move macro from config.hpp
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user