forked from boostorg/beast
status-codes is unsigned (API Change)
This commit is contained in:
1 parent
798ff25795
commit
5a2d78849f
4 files changed
+15
-14
No files matched your search
@@ -140,7 +140,7 @@ public:
|
||||
template<class String>
|
||||
void
|
||||
prepare(String&s, basic_fields const& f,
|
||||
unsigned version, int code);
|
||||
unsigned version, unsigned code);
|
||||
|
||||
basic_fields const& f_;
|
||||
static_string<max_static_start_line> ss_;
|
||||
@@ -158,7 +158,7 @@ public:
|
||||
unsigned version, verb v);
|
||||
|
||||
reader(basic_fields const& f,
|
||||
unsigned version, int code);
|
||||
unsigned version, unsigned code);
|
||||
|
||||
const_buffers_type
|
||||
get() const
|
||||
@@ -216,7 +216,7 @@ template<class String>
|
||||
void
|
||||
basic_fields<Allocator>::reader::
|
||||
prepare(String& s,basic_fields const& f,
|
||||
unsigned version, int code)
|
||||
unsigned version, unsigned code)
|
||||
{
|
||||
if(version == 11)
|
||||
{
|
||||
@@ -274,7 +274,7 @@ reader(basic_fields const& f,
|
||||
template<class Allocator>
|
||||
basic_fields<Allocator>::reader::
|
||||
reader(basic_fields const& f,
|
||||
unsigned version, int code)
|
||||
unsigned version, unsigned code)
|
||||
: f_(f)
|
||||
{
|
||||
try
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace detail {
|
||||
|
||||
template<class = void>
|
||||
status
|
||||
int_to_status(int v)
|
||||
int_to_status(unsigned v)
|
||||
{
|
||||
switch(static_cast<status>(v))
|
||||
{
|
||||
@@ -106,7 +106,7 @@ int_to_status(int v)
|
||||
|
||||
template<class = void>
|
||||
string_view
|
||||
status_to_string(int v)
|
||||
status_to_string(unsigned v)
|
||||
{
|
||||
switch(static_cast<status>(v))
|
||||
{
|
||||
@@ -189,7 +189,7 @@ status_to_string(int v)
|
||||
|
||||
template<class = void>
|
||||
status_class
|
||||
to_status_class(int v)
|
||||
to_status_class(unsigned v)
|
||||
{
|
||||
switch(v / 100)
|
||||
{
|
||||
@@ -208,14 +208,14 @@ to_status_class(int v)
|
||||
|
||||
inline
|
||||
status
|
||||
int_to_status(int v)
|
||||
int_to_status(unsigned v)
|
||||
{
|
||||
return detail::int_to_status(v);
|
||||
}
|
||||
|
||||
inline
|
||||
status_class
|
||||
to_status_class(int v)
|
||||
to_status_class(unsigned v)
|
||||
{
|
||||
return detail::to_status_class(v);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ string_view
|
||||
obsolete_reason(status v)
|
||||
{
|
||||
return detail::status_to_string(
|
||||
static_cast<int>(v));
|
||||
static_cast<unsigned>(v));
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
Reference in new issue
Block a user