12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef BOOST_BEAST_DETAIL_STATIC_CONST_HPP
- #define BOOST_BEAST_DETAIL_STATIC_CONST_HPP
- namespace boost {
- namespace beast {
- namespace detail {
- template<typename T>
- struct static_const
- {
- static constexpr T value {};
- };
- 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; \
- }
- }
- }
- }
- #endif
|