From d9e2dd03bf4faabe63f09c7853939d67eb04539d Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 11 Mar 2017 15:46:52 +0100 Subject: [PATCH] :hammer: fixed interface for to_json function --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 432cf553..d3601078 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 21b4fd3a..1560f1ef 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); }