1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

Replace EOF with char_traits (#4532)

* 📝 update customers

* ♻️ replace EOF with char_traits #2755
This commit is contained in:
Niels Lohmann
2024-12-10 20:51:47 +01:00
committed by GitHub
parent 589641b175
commit 20ae363a71
4 changed files with 11 additions and 9 deletions

View File

@ -3273,10 +3273,10 @@ NLOHMANN_JSON_NAMESPACE_END
#include <limits> // numeric_limits
#include <string> // char_traits
#include <tuple> // tuple
#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
#include <utility> // declval
#include <tuple> // tuple
#include <string> // char_traits
// #include <nlohmann/detail/iterators/iterator_traits.hpp>
// __ _____ _____ _____
@ -3658,7 +3658,7 @@ struct char_traits<unsigned char> : std::char_traits<char>
static constexpr int_type eof() noexcept
{
return static_cast<int_type>(EOF);
return static_cast<int_type>(std::char_traits<char>::eof());
}
};
@ -3682,7 +3682,7 @@ struct char_traits<signed char> : std::char_traits<char>
static constexpr int_type eof() noexcept
{
return static_cast<int_type>(EOF);
return static_cast<int_type>(std::char_traits<char>::eof());
}
};