json/include/nlohmann
Jaakko Moisio 467f622c65 Fix compilation of input_adapter(container) in edge cases
This fixes a compilation issue with the library if trying to use containers that
don't have non-member `begin()` and `end()` functions via ADL.

This patch extends the `using std::begin` and `using std::end` declarations to
also cover the return type deduction of the input_adapter() template
specialization for containers. The previous implementation only enabled the
detection of `std::begin()` and `std::end()` in the function body, making the
specialization unusable for container types that only have member `begin()` and
`end()` functions.

It is not typical to have `using` declarations in the namespace scope in a
header file. But a C++11 implementation can't rely on fully automatic return
type deduction, and needs to rely on ADL enabled helper templates. To prevent
the using declarations leaking, they are enclosed in another nested namespace.
2020-12-28 22:21:02 +01:00
..
detail Fix compilation of input_adapter(container) in edge cases 2020-12-28 22:21:02 +01:00
thirdparty/hedley 🚨 fix warnings 2020-12-26 17:56:16 +01:00
adl_serializer.hpp 🎨 replace alternative operators (and, not, or) 2020-06-03 14:20:36 +02:00
byte_container_with_subtype.hpp Change underscore placement 2020-12-11 13:43:17 +01:00
json.hpp Include <string_view> in "nlohmann/json.hpp" when C++17 is used 2020-12-20 19:40:36 +05:00
json_fwd.hpp Fix compilation for xcode 9.x 2020-07-03 01:44:18 +01:00
ordered_map.hpp ordered_map::insert(InputIt first, InputIt last) is added 2020-12-07 20:15:41 +03:00