From 04372a8c569b8788373d7d4a655b3f40aca454f9 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 19 Jul 2018 17:31:50 +0200 Subject: [PATCH] :checkered_flag: fix for #1168 --- include/nlohmann/json.hpp | 9 ++++----- single_include/nlohmann/json.hpp | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 58b1998203..2d8935f439 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -7637,11 +7637,10 @@ namespace std @since version 1.0.0 */ template<> -inline void swap(nlohmann::json& j1, - nlohmann::json& j2) noexcept( - is_nothrow_move_constructible::value and - is_nothrow_move_assignable::value - ) +inline void swap(nlohmann::json& j1, nlohmann::json& j2) noexcept( + is_nothrow_move_constructible::value and + is_nothrow_move_assignable::value +) { j1.swap(j2); } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 88e90ad9af..1ee2323c25 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -18472,11 +18472,10 @@ namespace std @since version 1.0.0 */ template<> -inline void swap(nlohmann::json& j1, - nlohmann::json& j2) noexcept( - is_nothrow_move_constructible::value and - is_nothrow_move_assignable::value - ) +inline void swap(nlohmann::json& j1, nlohmann::json& j2) noexcept( + is_nothrow_move_constructible::value and + is_nothrow_move_assignable::value +) { j1.swap(j2); }