From 894d32b2aa38f21d077bbe716cd879fcd74aba11 Mon Sep 17 00:00:00 2001 From: junyoungjo Date: Tue, 18 Dec 2018 23:07:00 +0900 Subject: [PATCH] fix #1352 remove to_json for std::pair --- include/nlohmann/detail/conversions/to_json.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/nlohmann/detail/conversions/to_json.hpp b/include/nlohmann/detail/conversions/to_json.hpp index d274eadd5..8da1b8eac 100644 --- a/include/nlohmann/detail/conversions/to_json.hpp +++ b/include/nlohmann/detail/conversions/to_json.hpp @@ -297,12 +297,6 @@ void to_json(BasicJsonType& j, const T (&arr)[N]) external_constructor::construct(j, arr); } -template -void to_json(BasicJsonType& j, const std::pair& p) -{ - j = {p.first, p.second}; -} - // for https://github.com/nlohmann/json/pull/1134 template::iteration_proxy_internal>::value, int> = 0>