diff --git a/include/pybind11_json/pybind11_json.hpp b/include/pybind11_json/pybind11_json.hpp index 19ae9dc..2b7d9b2 100644 --- a/include/pybind11_json/pybind11_json.hpp +++ b/include/pybind11_json/pybind11_json.hpp @@ -54,7 +54,7 @@ namespace pyjson { obj[i] = from_json(j[i]); } - return std::move(obj); + return obj; } else // Object { @@ -63,7 +63,7 @@ namespace pyjson { obj[py::str(it.key())] = from_json(it.value()); } - return std::move(obj); + return obj; } }