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:
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user