From 528315fb03ed8867ccf9a4946a8757d5db3a384a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DELRIEU?= Date: Mon, 17 Oct 2016 23:41:53 +0200 Subject: [PATCH] anonymous namespace renamed to detail --- src/json.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index f3cf1bf4f..f8085da8d 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -98,8 +98,8 @@ struct json_traits; @brief unnamed namespace with internal helper functions @since version 1.0.0 */ -// TODO transform this anon ns to detail? -namespace + +namespace detail { /*! @brief Helper to determine whether there's a key_type for T. @@ -143,8 +143,6 @@ struct has_json_traits static constexpr bool value = has_destructor>::value; }; -template <> struct has_json_traits : std::false_type {}; - /*! @brief helper class to create locales with decimal point @@ -1251,7 +1249,7 @@ class basic_json template < typename T, typename = - typename std::enable_if::type>::type>::value>::type> explicit basic_json(T &&val) : basic_json(json_traits::type>::type>::value>::type> auto get_impl(T *) const -> decltype( json_traits::value and not std::is_arithmetic::value and not std::is_convertible::value and - not has_mapped_type::value, int>::type = 0> + not detail::has_mapped_type::value, int>::type = 0> T get_impl(T*) const { if (is_array()) @@ -2706,7 +2704,7 @@ class basic_json /// get an array (explicit) template::value and - not has_mapped_type::value, int>::type = 0> + not detail::has_mapped_type::value, int>::type = 0> T get_impl(T*) const { if (is_array())