On 11/18/2012 09:50 PM, Jonathan Schleifer wrote:
Am 18.11.2012 um 21:34 schrieb pulkomandy:You can use a placement new for that.I don't see the reason to use overly complex, error-prone code for something that is not performance-critical. Using a vector here is the easiest solution that takes care of everything.
Nah, you misread the mails, I think. Your solution is perfectly fine there; it's just that in other situations, a different approach might be preferred.
Bye, Axel.