From cf8251eb544dcaba780b12a1da90afb791d31395 Mon Sep 17 00:00:00 2001
From: Niels Lohmann <mail@nlohmann.me>
Date: Sun, 14 Jul 2019 21:19:55 +0200
Subject: [PATCH] :ambulance: fix compiler errors

---
 include/nlohmann/detail/iterators/iter_impl.hpp |  8 --------
 include/nlohmann/detail/json_pointer.hpp        |  4 ++--
 single_include/nlohmann/json.hpp                | 12 ++----------
 3 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/include/nlohmann/detail/iterators/iter_impl.hpp b/include/nlohmann/detail/iterators/iter_impl.hpp
index 97d3cc9c..336aba1a 100644
--- a/include/nlohmann/detail/iterators/iter_impl.hpp
+++ b/include/nlohmann/detail/iterators/iter_impl.hpp
@@ -164,14 +164,6 @@ class iter_impl
         return *this;
     }
 
-    /// @copydoc operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>&)
-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
-    {
-        m_object = other.m_object;
-        m_it = other.m_it;
-        return *this;
-    }
-
   private:
     /*!
     @brief set the iterator to the first value
diff --git a/include/nlohmann/detail/json_pointer.hpp b/include/nlohmann/detail/json_pointer.hpp
index ec7d7f72..9076441c 100644
--- a/include/nlohmann/detail/json_pointer.hpp
+++ b/include/nlohmann/detail/json_pointer.hpp
@@ -718,14 +718,14 @@ class json_pointer
 
                 case detail::value_t::array:
                 {
-                    if (JSON_UNLIKELY(reference_token == "-"))
+                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
                     {
                         // "-" always fails the range check
                         return false;
                     }
 
                     // error condition (cf. RFC 6901, Sect. 4)
-                    if (JSON_UNLIKELY(reference_token.size() > 1 and reference_token[0] == '0'))
+                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1 and reference_token[0] == '0'))
                     {
                         JSON_THROW(detail::parse_error::create(106, 0,
                                                                "array index '" + reference_token +
diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp
index b785314e..c2128dcc 100644
--- a/single_include/nlohmann/json.hpp
+++ b/single_include/nlohmann/json.hpp
@@ -9363,14 +9363,6 @@ class iter_impl
         return *this;
     }
 
-    /// @copydoc operator=(const iter_impl<typename std::remove_const<BasicJsonType>::type>&)
-    iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
-    {
-        m_object = other.m_object;
-        m_it = other.m_it;
-        return *this;
-    }
-
   private:
     /*!
     @brief set the iterator to the first value
@@ -10693,14 +10685,14 @@ class json_pointer
 
                 case detail::value_t::array:
                 {
-                    if (JSON_UNLIKELY(reference_token == "-"))
+                    if (JSON_HEDLEY_UNLIKELY(reference_token == "-"))
                     {
                         // "-" always fails the range check
                         return false;
                     }
 
                     // error condition (cf. RFC 6901, Sect. 4)
-                    if (JSON_UNLIKELY(reference_token.size() > 1 and reference_token[0] == '0'))
+                    if (JSON_HEDLEY_UNLIKELY(reference_token.size() > 1 and reference_token[0] == '0'))
                     {
                         JSON_THROW(detail::parse_error::create(106, 0,
                                                                "array index '" + reference_token +