formatting

This commit is contained in:
Vito
2026-02-17 14:05:31 +01:00
parent d6e5c971b5
commit 0e4d042d70
4 changed files with 31 additions and 52 deletions

View File

@@ -106,8 +106,7 @@ template <class T>
concept Integral64 = std::is_same_v<T, std::int64_t> || std::is_same_v<T, std::uint64_t>;
template <class STAmount, class Asset>
concept CanUseAsScale = requires(Asset a, Number n) { STAmount(a, n); } &&
requires(STAmount s) { s.exponent(); };
concept CanUseAsScale = requires(Asset a, Number n) { STAmount(a, n); } && requires(STAmount s) { s.exponent(); };
/** Number is a floating point type that can represent a wide range of values.
*

View File

@@ -480,14 +480,12 @@ STAmount::zeroed() const
return STAmount(mAsset);
}
inline STAmount::
operator bool() const noexcept
inline STAmount::operator bool() const noexcept
{
return *this != beast::zero;
}
inline STAmount::
operator Number() const
inline STAmount::operator Number() const
{
if (native())
return xrp();