mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
Move macro from config.hpp
This commit is contained in:
@@ -67,13 +67,6 @@ namespace net = boost::asio;
|
|||||||
# endif
|
# endif
|
||||||
#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
|
// Default to a header-only implementation. The user must specifically
|
||||||
// request separate compilation by defining BOOST_BEAST_SPLIT_COMPILATION
|
// request separate compilation by defining BOOST_BEAST_SPLIT_COMPILATION
|
||||||
#ifndef BOOST_BEAST_HEADER_ONLY
|
#ifndef BOOST_BEAST_HEADER_ONLY
|
||||||
|
@@ -35,6 +35,13 @@ struct static_const
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
constexpr T static_const<T>::value;
|
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
|
} // detail
|
||||||
} // beast
|
} // beast
|
||||||
} // boost
|
} // boost
|
||||||
|
Reference in New Issue
Block a user