forked from boostorg/beast
1 parent
0a334d96d1
commit
e53ccf251c
10 files changed
+47
-18
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user