json/include/nlohmann/detail/meta/call_std
Théo Delrieu 7b2d59162d
meta: fix is_compatible/constructible traits
The previous version relied on the existence of an 'iterator' type.

As mentioned in comments, this is not the proper way to do it and
causes issues with certain types (e.g. views from range-v3).

Add a 'is_range' trait that properly detects the return type of
'begin'/'end', and use it in instead.
2021-09-28 10:11:45 +02:00
..
begin.hpp meta: fix is_compatible/constructible traits 2021-09-28 10:11:45 +02:00
end.hpp meta: fix is_compatible/constructible traits 2021-09-28 10:11:45 +02:00