diff --git a/src/mesh/ItemId.hpp b/src/mesh/ItemId.hpp index c52958f8bd8d48537c8a99666169d0fd1968c003..e62fe7bae6b75f37285257d4211e7ad70d8b6a26 100644 --- a/src/mesh/ItemId.hpp +++ b/src/mesh/ItemId.hpp @@ -25,9 +25,7 @@ class ItemIdT constexpr ItemIdT operator++(int) { - ItemIdT item_id(m_id); - ++m_id; - return std::move(item_id); + return ItemIdT{m_id++}; } PUGS_INLINE