mirror of
https://github.com/nlohmann/json.git
synced 2025-07-25 13:41:56 +03:00
🔨 fixed interface for to_json function
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user