Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/eosio/vm/backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ namespace eosio { namespace vm {
}

template <typename... Args>
inline auto operator()(host_t& host, const std::string_view& mod, const std::string_view& func, Args... args) {
return call(host, mod, func, args...);
inline auto operator()(host_t& host, const std::string_view& mod, const std::string_view& func, Args&&... args) {
return call(host, mod, func, std::forward<Args>(args)...);
}

template <typename... Args>
inline bool operator()(const std::string_view& mod, const std::string_view& func, Args... args) {
return call(mod, func, args...);
inline bool operator()(const std::string_view& mod, const std::string_view& func, Args&&... args) {
return call(mod, func, std::forward<Args>(args)...);
}

// Only dynamic options matter. Parser options will be ignored.
Expand Down
Loading