This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::vector<T> does not use the move constructor of T to change its capacity


Thank you!

Jakub


2015-01-16 8:31 GMT+01:00 Marc Glisse <marc.glisse@inria.fr>:
> On Fri, 16 Jan 2015, Jakub Galgonek wrote:
>
>> I have made some experiments with move constructors in C++ 11 (in g++
>> 4.8.3 and g++ 4.9.2) and I have observed that std::vector<T> uses the
>> copy constructor (instead of the move constructor) of T to change the
>> capacity of a vector instance.
>
>
> Please mark the move constructor as noexcept.
>
> --
> Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]