1
General / Re: Problems with Entity Manager using std::unique_ptr
« on: August 22, 2012, 11:47:28 pm »
Due to the way std::unique_ptr works it is not possible to pass it by value. You probably want to either pass the args to createEntity and then create the entity inside that, or pass an std::unique_ptr by rvalue reference and then use std::move together with emplace_back to put it into the vector.
By the way, I'm not quite sure how you intend to binary search over an unordered container...
By the way, I'm not quite sure how you intend to binary search over an unordered container...