Skip to content

Commit

Permalink
Fix variable forward for variadic in Windows build (hyperledger-iroha…
Browse files Browse the repository at this point in the history
…#1454)

Signed-off-by: Andrei Lebedev <[email protected]>
  • Loading branch information
lebdron authored Jun 13, 2018
1 parent 098ec30 commit d21433e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared_model/interfaces/iroha_internal/block_variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shared_model {
decltype(auto) invoke(const BlockVariant *var, Func &&f, Args &&... args) {
return iroha::visit_in_place(
*var, [&](const auto &any_block) -> decltype(auto) {
return ((*any_block.*f)(std::forward<Args>(args)...));
return ((*any_block.*f)(std::forward<decltype(args)>(args)...));
});
}

Expand Down

0 comments on commit d21433e

Please sign in to comment.