mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidying and fix warnings
This commit is contained in:
@@ -146,7 +146,7 @@ unhex(char c)
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 // 112
|
||||
}};
|
||||
return tab[static_cast<std::uint8_t>(c)];
|
||||
};
|
||||
}
|
||||
|
||||
template<class = void>
|
||||
struct parser_str_t
|
||||
|
||||
@@ -478,10 +478,9 @@ write(SyncWriteStream& stream,
|
||||
cv.notify_one();
|
||||
}};
|
||||
auto copy = resume;
|
||||
boost::tribool result;
|
||||
result = wp.w(std::move(copy), ec,
|
||||
detail::writef0_lambda<SyncWriteStream, decltype(wp.sb)>{
|
||||
stream, wp.sb, wp.chunked, ec});
|
||||
boost::tribool result = wp.w(std::move(copy),
|
||||
ec, detail::writef0_lambda<SyncWriteStream,
|
||||
decltype(wp.sb)>{stream, wp.sb, wp.chunked, ec});
|
||||
if(ec)
|
||||
return;
|
||||
if(boost::indeterminate(result))
|
||||
|
||||
@@ -93,7 +93,6 @@ struct message
|
||||
@param v An argument forwarded to the headers constructor.
|
||||
*/
|
||||
template<class U, class V>
|
||||
explicit
|
||||
message(U&& u, V&& v)
|
||||
: headers(std::forward<V>(v))
|
||||
, body(std::forward<U>(u))
|
||||
@@ -118,7 +117,6 @@ struct message
|
||||
@param vn A tuple forwarded as a parameter pack to the headers constructor.
|
||||
*/
|
||||
template<class... Un, class... Vn>
|
||||
explicit
|
||||
message(std::piecewise_construct_t,
|
||||
std::tuple<Un...>&& un, std::tuple<Vn...>&& vn)
|
||||
: message(std::piecewise_construct, un, vn,
|
||||
|
||||
@@ -48,9 +48,9 @@ little_uint32_to_native(void const* buf)
|
||||
std::uint8_t const*>(buf);
|
||||
return
|
||||
p[0] +
|
||||
(static_cast<std::uint64_t>(p[1])<< 8) +
|
||||
(static_cast<std::uint64_t>(p[2])<<16) +
|
||||
(static_cast<std::uint64_t>(p[3])<<24);
|
||||
(static_cast<std::uint32_t>(p[1])<< 8) +
|
||||
(static_cast<std::uint32_t>(p[2])<<16) +
|
||||
(static_cast<std::uint32_t>(p[3])<<24);
|
||||
}
|
||||
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user