diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c
index af8ef8b7..250c57f0 100644
--- a/src/json.hpp.re2c
+++ b/src/json.hpp.re2c
@@ -1658,8 +1658,8 @@ class basic_json
     )
     {
         using std::swap;
-        std::swap(m_type, other.m_type);
-        std::swap(m_value, other.m_value);
+        swap(m_type, other.m_type);
+        swap(m_value, other.m_value);
         return *this;
     }