🔨 fixed interface for to_json function

This commit is contained in:
Niels Lohmann 2017-03-11 15:46:52 +01:00
parent f5f6dac800
commit d9e2dd03bf
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View file

@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept
} }
template<typename BasicJsonType> template<typename BasicJsonType>
void to_json(BasicJsonType& j, std::vector<bool> e) noexcept void to_json(BasicJsonType& j, const std::vector<bool>& e)
{ {
external_constructor<value_t::array>::construct(j, e); external_constructor<value_t::array>::construct(j, e);
} }

View file

@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept
} }
template<typename BasicJsonType> template<typename BasicJsonType>
void to_json(BasicJsonType& j, std::vector<bool> e) noexcept void to_json(BasicJsonType& j, const std::vector<bool>& e)
{ {
external_constructor<value_t::array>::construct(j, e); external_constructor<value_t::array>::construct(j, e);
} }