diff --git a/src/ripple/protocol/Asset.h b/src/ripple/protocol/Asset.h index 9f2d78cafbf..5da2215c0df 100644 --- a/src/ripple/protocol/Asset.h +++ b/src/ripple/protocol/Asset.h @@ -96,7 +96,7 @@ class Asset template requires(std::is_same_v || std::is_same_v) - T const* get() const + T const* get() const { return std::get_if(asset_); } diff --git a/src/ripple/protocol/impl/Asset.cpp b/src/ripple/protocol/impl/Asset.cpp index 604e3316464..ed484de4437 100644 --- a/src/ripple/protocol/impl/Asset.cpp +++ b/src/ripple/protocol/impl/Asset.cpp @@ -33,7 +33,7 @@ Asset::addBitString(ripple::Serializer& s) const } } -Asset::operator Currency const&() const +Asset::operator Currency const &() const { assert(std::holds_alternative(asset_)); if (!std::holds_alternative(asset_)) @@ -41,7 +41,7 @@ Asset::operator Currency const&() const return std::get(asset_); } -Asset::operator MPT const&() const +Asset::operator MPT const &() const { assert(std::holds_alternative(asset_)); if (!std::holds_alternative(asset_))