m_entity_vector_map[key] = entity_vector
tries to copy an EntityVector
thereby trying to copy
an Entity
which is essentially copying a std::unique_ptr
. You cannot copy std::unique_ptr
(it wouldn't be unique anymore).
You might want to move entity_vector
into m_entity_vector_map
, but then you cannot pass entity_vector
as a const reference into pushEntityVector
.