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] |
As I suggested yesterday on the libstdc++ list, this adds an overload for string and vector iterators to extract a raw pointer and re-use the _Compiler<const C*,...> specialization, so that std::regex(".") and std::regex(std::string(".")) and std::regex(std::vector<char>(1, '.')) only instantiate _Compiler<It,Tr> once. 2013-11-08 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/regex_compiler.h (__detail::__compile_nfa): Overload so that std::basic_string<C> and std::vector<C> iterators dispatch to the const C* compiler. Tested x86_64-linux, committed to trunk.
Attachment:
patch-4.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |