From 7b627c7bff60e9eb1286e464701ee5d0ab8ddcfc Mon Sep 17 00:00:00 2001 From: Alexander Karzhenkov Date: Fri, 21 Aug 2020 20:17:56 +0500 Subject: [PATCH] Use old emplace_back even with C++17 clang-7 has old signature returning void --- single_include/nlohmann/json.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 2ba6c4051..7965b4857 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -21957,12 +21957,8 @@ class basic_json } // add element to array (perfect forwarding) -#ifdef JSON_HAS_CPP_17 - return m_value.array->emplace_back(std::forward(args)...); -#else m_value.array->emplace_back(std::forward(args)...); return m_value.array->back(); -#endif } /*!