forked from boostorg/beast
@@ -25,21 +25,6 @@ namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
// variadic min
|
||||
template<class T>
|
||||
T constexpr min(T t)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
template<class T, class...Tn>
|
||||
T constexpr min(T t0, T t1, Tn... tn)
|
||||
{
|
||||
return (t0 < t1) ?
|
||||
(detail::min)(t0, tn...) :
|
||||
(detail::min)(t1, tn...);
|
||||
}
|
||||
|
||||
template<class U>
|
||||
std::size_t constexpr
|
||||
max_sizeof()
|
||||
|
||||
@@ -152,7 +152,7 @@ class simple_rate_policy
|
||||
friend class rate_policy_access;
|
||||
|
||||
static std::size_t constexpr all =
|
||||
std::numeric_limits<std::size_t>::max();
|
||||
(std::numeric_limits<std::size_t>::max)();
|
||||
|
||||
std::size_t rd_remain_ = all;
|
||||
std::size_t wr_remain_ = all;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define BOOST_BEAST_WEBSOCKET_DETAIL_PRNG_HPP
|
||||
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
#include <random>
|
||||
@@ -65,7 +66,7 @@ public:
|
||||
|
||||
static
|
||||
value_type constexpr
|
||||
min() noexcept
|
||||
min BOOST_PREVENT_MACRO_SUBSTITUTION () noexcept
|
||||
{
|
||||
return (std::numeric_limits<
|
||||
value_type>::min)();
|
||||
@@ -73,7 +74,7 @@ public:
|
||||
|
||||
static
|
||||
value_type constexpr
|
||||
max() noexcept
|
||||
max BOOST_PREVENT_MACRO_SUBSTITUTION () noexcept
|
||||
{
|
||||
return (std::numeric_limits<
|
||||
value_type>::max)();
|
||||
|
||||
Reference in New Issue
Block a user