diff --git a/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/schema_impl.hpp b/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/schema_impl.hpp index cdc90789f87..377b3303190 100644 --- a/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/schema_impl.hpp +++ b/circuits/cpp/barretenberg/cpp/src/barretenberg/serialize/msgpack_impl/schema_impl.hpp @@ -212,7 +212,7 @@ inline void msgpack_schema_pack(MsgpackSchemaPacker& packer, std::array co * @param obj The object to print schema of. * @return std::string The schema as a string. */ -inline std::string msgpack_schema_to_string(auto obj) +inline std::string msgpack_schema_to_string(const auto& obj) { msgpack::sbuffer output; MsgpackSchemaPacker printer{ output };