From 45f5611d9bda27cd4732ac3c374ee9c62ee6d5e4 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 20 Dec 2018 22:41:48 +0100 Subject: [PATCH] :rotating_light: fixed two warnings --- include/nlohmann/detail/iterators/iteration_proxy.hpp | 8 ++++---- single_include/nlohmann/json.hpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/nlohmann/detail/iterators/iteration_proxy.hpp b/include/nlohmann/detail/iterators/iteration_proxy.hpp index 837ce9c8..51e77046 100644 --- a/include/nlohmann/detail/iterators/iteration_proxy.hpp +++ b/include/nlohmann/detail/iterators/iteration_proxy.hpp @@ -148,13 +148,13 @@ auto get(const nlohmann::detail::iteration_proxy_value& i) -> decl namespace std { template -struct tuple_size<::nlohmann::detail::iteration_proxy_value> - : std::integral_constant {}; +class tuple_size<::nlohmann::detail::iteration_proxy_value> + : public std::integral_constant {}; template -struct tuple_element < - N, ::nlohmann::detail::iteration_proxy_value> +class tuple_element> { + public: using type = decltype( get(std::declval < ::nlohmann::detail::iteration_proxy_value> ())); diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index dbcec732..5341affd 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -1796,13 +1796,13 @@ auto get(const nlohmann::detail::iteration_proxy_value& i) -> decl namespace std { template -struct tuple_size<::nlohmann::detail::iteration_proxy_value> - : std::integral_constant {}; +class tuple_size<::nlohmann::detail::iteration_proxy_value> + : public std::integral_constant {}; template -struct tuple_element < - N, ::nlohmann::detail::iteration_proxy_value> +class tuple_element> { + public: using type = decltype( get(std::declval < ::nlohmann::detail::iteration_proxy_value> ()));