Skip to content

Commit

Permalink
fix: msgpack variant_impl.hpp (#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 9413a2e commit b5838a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp
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 b5838a6

Please sign in to comment.