
2013/2/12 Nevin Liber <nevin@eviloverlord.com>
On 12 February 2013 09:10, Krzysztof Czainski <1czajnik@gmail.com> wrote:
However, I'd rather there was a new member function for "noinit" pushing/resizing. Just like the emplace* family of functions was added, while the push* family was left alone ;-)
Do you also envision another method for emplace construction indicating list initialization (aka uniform initialization, ::new((void *)p) U{std::forward<Args>(args)...}) vs. direct initialization (::new((void *)p) U(std::forward<Args>(args)...))?
I am not familiar with C++11 initialization syntax details, I only read about that, and I'm stuck with C++03 for now. Are you suggesting, that this would mean adding a lot of (too many?) member functions? Anyway, personally I'm only interested in features, that can be added for C++03 ;-) And noinit_push*/noinit_resize (enabled_if< is_pod<value_type> >) are things I have use cases for. Cheers, Kris