mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
chore: Enable clang-tidy modernize checks (#6975)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
@@ -50,7 +50,7 @@ namespace xrpl {
|
||||
|
||||
namespace STParsedJSONDetail {
|
||||
template <typename U, typename S>
|
||||
constexpr std::enable_if_t<std::is_unsigned<U>::value && std::is_signed<S>::value, U>
|
||||
constexpr std::enable_if_t<std::is_unsigned_v<U> && std::is_signed_v<S>, U>
|
||||
to_unsigned(S value)
|
||||
{
|
||||
if (value < 0 || std::numeric_limits<U>::max() < value)
|
||||
@@ -59,7 +59,7 @@ to_unsigned(S value)
|
||||
}
|
||||
|
||||
template <typename U1, typename U2>
|
||||
constexpr std::enable_if_t<std::is_unsigned<U1>::value && std::is_unsigned<U2>::value, U1>
|
||||
constexpr std::enable_if_t<std::is_unsigned_v<U1> && std::is_unsigned_v<U2>, U1>
|
||||
to_unsigned(U2 value)
|
||||
{
|
||||
if (std::numeric_limits<U1>::max() < value)
|
||||
|
||||
Reference in New Issue
Block a user