From 8126f0c0a9153543602edf707f0ee01447276602 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Sat, 16 Feb 2019 16:12:08 +0000 Subject: [PATCH] Move code around. No functional change --- mkjson.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mkjson.hpp b/mkjson.hpp index 024a47b..d1b43b4 100644 --- a/mkjson.hpp +++ b/mkjson.hpp @@ -167,6 +167,12 @@ class JSON::Impl { Impl() noexcept; }; +/*explicit*/ JSON::Impl::Impl(nlohmann::json &&value) noexcept { + std::swap(value, nlohmann_json); +} + +JSON::Impl::Impl() noexcept {} + // JSON::Friend is the definition of the class friend of JSON. class JSON::Friend { public: @@ -178,12 +184,6 @@ class JSON::Friend { return json.impl->nlohmann_json; } -/*explicit*/ JSON::Impl::Impl(nlohmann::json &&value) noexcept { - std::swap(value, nlohmann_json); -} - -JSON::Impl::Impl() noexcept {} - /*explicit*/ JSON::JSON(Impl &&other_impl) noexcept : JSON{} { std::swap(other_impl, *impl); }