mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 17:40:25 +00:00
Merge branch 'ripple/wasmi' into wasmi-host-functions
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
|
||||
namespace xrpl {
|
||||
|
||||
std::unordered_map<
|
||||
TERUnderlyingType,
|
||||
std::pair<char const* const, char const* const>> const&
|
||||
std::unordered_map<TERUnderlyingType, std::pair<char const* const, char const* const>> const&
|
||||
transResults()
|
||||
{
|
||||
// clang-format off
|
||||
@@ -266,11 +264,9 @@ transCode(std::string const& token)
|
||||
static auto const results = [] {
|
||||
auto& byTer = transResults();
|
||||
auto range = boost::make_iterator_range(byTer.begin(), byTer.end());
|
||||
auto tRange = boost::adaptors::transform(range, [](auto const& r) {
|
||||
return std::make_pair(r.second.first, r.first);
|
||||
});
|
||||
std::unordered_map<std::string, TERUnderlyingType> const byToken(
|
||||
tRange.begin(), tRange.end());
|
||||
auto tRange =
|
||||
boost::adaptors::transform(range, [](auto const& r) { return std::make_pair(r.second.first, r.first); });
|
||||
std::unordered_map<std::string, TERUnderlyingType> const byToken(tRange.begin(), tRange.end());
|
||||
return byToken;
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user