This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[v3] Use move_if_noexcept in std::vector


Hi,

the below starts using it, for correctness wrt move constructors which can throw. For sure we are missing the optimization which uses the default-constructor + swap when the type isn't nothrow move constructible, per Note 5 in n3050, for example.

Tested x86_64-linux, committed.

Paolo.

/////////////////////

Attachment: CL_move_if_noexcept_vector
Description: Text document

Attachment: patch_move_if_noexcept_vector
Description: Text document


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