From b5838a6c9fe456e832776da21379e41c0a2bbd5d 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 (#462) Previous version accidentally created a packer> --- cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp b/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp index 8241ba47ab..66fe6398be 100644 --- a/cpp/src/barretenberg/serialize/msgpack_impl/variant_impl.hpp +++ b/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 +}