🚨 fixed some linter warnings

This commit is contained in:
Niels Lohmann 2018-10-06 13:49:02 +02:00
parent f1768a540a
commit ec95438a59
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 10 additions and 10 deletions

View file

@ -306,7 +306,7 @@ void to_json(BasicJsonType& j, const std::pair<Args...>& p)
// for https://github.com/nlohmann/json/pull/1134
template<typename BasicJsonType, typename T,
enable_if_t<std::is_same<T, typename iteration_proxy<typename BasicJsonType::iterator>::iteration_proxy_internal>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept
void to_json(BasicJsonType& j, const T& b)
{
j = {{b.key(), b.value()}};
}