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]

[patch] Make basic_string::replace forward to different overload


Currently the overload of basic_string::replace taking an
initializer_list forwards to the overload taking two const _Char*
arguments, which does some debug checks, then forwards to the overload
taking a const _Char* and a size_type, which repeats the debug checks.

The initializer_list overload can skip the first step and forward
straight to the second one.

Tested x86_64-linux, committed to trunk.

Attachment: patch2.txt
Description: Text document


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