diff --git a/src/json.hpp b/src/json.hpp index 432cf553b..d3601078a 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept } template -void to_json(BasicJsonType& j, std::vector e) noexcept +void to_json(BasicJsonType& j, const std::vector& e) { external_constructor::construct(j, e); } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 21b4fd3ae..1560f1ef8 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept } template -void to_json(BasicJsonType& j, std::vector e) noexcept +void to_json(BasicJsonType& j, const std::vector& e) { external_constructor::construct(j, e); }