I have a map<EntityState, boost::weak_ptr<Animation>> in my EntityRepresentation class. I would kinda want to create a Builder class for the representation, but I have to consider the costs of copying the map.
EntityState is cheap to copy since it’s just a collection of static functions; boost::weak_ptr is also cheap to copy. How about the map as a whole?
It depends on the number of items it has. I don’t think its own members will cause much problem.