json/include/nlohmann
郑少锟 87cda1d664
Use std::iterator_traits to extract iterator_category (#3544)
* Use `std::iterator_traits` to extract `iterator_category`

In third-party STL implementations, `array_t::iterator` might be a pointer (e.g., `vector` in [EASTL](https://github.com/electronicarts/EASTL)) rather than a class, in which case directly using `array_t::iterator::iterator_category` is invalid. This commit fixes it with `std::iterator_traits`, which handles pointers correctly.

* add the changes to the single-header version
2022-06-18 19:14:03 +02:00
..
detail Use std::iterator_traits to extract iterator_category (#3544) 2022-06-18 19:14:03 +02:00
thirdparty/hedley 🚨 add new CI and fix warnings (#2561) 2021-03-24 07:15:18 +01:00
adl_serializer.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
byte_container_with_subtype.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
json.hpp Update json.hpp (#3499) 2022-06-06 13:01:46 +02:00
json_fwd.hpp Consolidate documentation (#3071) 2021-12-29 13:41:01 +01:00
ordered_map.hpp Implement support for string_view (attempt no. 3) (#3423) 2022-04-29 21:40:02 +02:00