Skip to content

Commit

Permalink
fix: msgpack variant_impl.hpp (AztecProtocol/barretenberg#462)
Browse files Browse the repository at this point in the history
Previous version accidentally created a packer<packer<Stream>>
  • Loading branch information
ludamad authored May 19, 2023
1 parent e391e9d commit 00cd801
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace msgpack::adaptor {
template<typename... T>
struct pack<std::variant< T...>> {
auto &operator()(auto& o, std::variant<T...> const &variant) const {
std::visit([&o](auto &&arg) { msgpack::pack(o, arg); }, variant);
std::visit([&o](const auto& arg) { o.pack(arg); }, variant);
return o;
}
};
}
}

0 comments on commit 00cd801

Please sign in to comment.