From de35fad88ee3172f867407661cac8b7e33903ba7 Mon Sep 17 00:00:00 2001 From: Francois Chabot Date: Wed, 19 Feb 2020 15:23:49 -0500 Subject: [PATCH] fixed missing return arg of operator=() --- include/nlohmann/detail/input/input_adapters.hpp | 1 + single_include/nlohmann/json.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/nlohmann/detail/input/input_adapters.hpp b/include/nlohmann/detail/input/input_adapters.hpp index d60af25c7..142aba285 100644 --- a/include/nlohmann/detail/input/input_adapters.hpp +++ b/include/nlohmann/detail/input/input_adapters.hpp @@ -103,6 +103,7 @@ class input_stream_adapter sb = rhs.sb; rhs.is = nullptr; rhs.sb = nullptr; + return *this; } // std::istream/std::streambuf use std::char_traits::to_int_type, to diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 0bd26e872..286e0a293 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -3966,6 +3966,7 @@ class input_stream_adapter sb = rhs.sb; rhs.is = nullptr; rhs.sb = nullptr; + return *this; } // std::istream/std::streambuf use std::char_traits::to_int_type, to