diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index c066c7e2624afa5b033c9c3795b289238fd8b5f3..3cd8f14d143ee280bd5998c4bd954d0d2dd6aec4 100644 --- a/include/caosdb/entity.h +++ b/include/caosdb/entity.h @@ -142,7 +142,7 @@ public: throw std::out_of_range("Container has size " + std::to_string(size())); } if (cache.count(index) == 0) { - cache.emplace(std::move(index), std::move(T(this->wrapped->Mutable(index)))); + cache.emplace(index, T(this->wrapped->Mutable(index))); } return &(cache.at(index)); }