| 48 | } |
| 49 | |
| 50 | std::function<BlocksciRangeType(std::any &)> SimpleProxy::getGenericRange() const { |
| 51 | return [generic = getGenericSimple()](std::any &v) -> BlocksciRangeType { |
| 52 | return mpark::visit([](auto && val) -> BlocksciRangeType { |
| 53 | return BlocksciRangeType{RawRange<std::decay_t<decltype(val)>>{ranges::views::single(std::forward<decltype(val)>(val))}}; |
| 54 | }, generic(v).var); |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | std::function<BlocksciType(std::any &)> ProxyAddress::getGenericSimple() const { |
| 59 | return [generic = getGenericScript()](std::any &val) -> BlocksciType { |