mirror of
https://github.com/nlohmann/json.git
synced 2026-10-28 08:45:43 +00:00
MSVC 2015 treats two function templates that differ only in a decltype return type as a redefinition (C2995), which breaks all three Visual Studio 2015 jobs on AppVeyor. Overload on the view's mode in the parameter type instead; template argument deduction ignores the read-only-to-editable conversion, so each view still selects the overload of its own mode. Signed-off-by: Niels Lohmann <mail@nlohmann.me>