From 221d53785c6a682887ba36eeef6151a51f105a29 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 19 May 2023 16:13:06 -0400 Subject: [PATCH] fix: msgpack variant_impl.hpp (https://github.com/AztecProtocol/barretenberg/pull/462) Previous version accidentally created a packer> --- .../src/barretenberg/serialize/msgpack_impl/variant_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp b/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp index 8241ba47abb..66fe6398bea 100644 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp @@ -9,8 +9,8 @@ namespace msgpack::adaptor { template struct pack> { auto &operator()(auto& o, std::variant 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; } }; -} \ No newline at end of file +}