Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jesyspa

Pages: [1]
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...

Pages: [1]