json/include/nlohmann/detail
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
..
conversions add a switch to enable implicit conversions (defaults to true) 2020-07-22 10:49:01 +02:00
input Fix compilation of input_adapter(container) in edge cases 2020-12-28 22:21:02 +01:00
iterators 🚨 fix warnings 2020-12-26 17:56:16 +01:00
meta 🚨 fix warnings 2020-12-26 17:56:16 +01:00
output Apply suggestions from code review 2020-11-24 11:02:58 -08:00
exceptions.hpp 🚧 support for UBJSON high-precision numbers #2286 2020-07-20 13:57:19 +02:00
hash.hpp 🚨 fix warnings 2020-12-26 17:56:16 +01:00
json_pointer.hpp ♻️ remove "#define private public" 2020-08-12 13:30:06 +02:00
json_ref.hpp 🎨 amalgamate code 2020-12-14 10:38:49 +01:00
macro_scope.hpp ♻️ remove "#define private public" 2020-08-12 13:30:06 +02:00
macro_unscope.hpp ♻️ remove "#define private public" 2020-08-12 13:30:06 +02:00
value_t.hpp 🔥 remove unused boolean_operators.hpp header 2020-07-11 19:20:44 +02:00