public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads @ 2012-06-02 2:06 luto at mit dot edu 2012-06-02 2:09 ` [Bug libstdc++/53561] " luto at mit dot edu ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: luto at mit dot edu @ 2012-06-02 2:06 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53561 Bug #: 53561 Summary: [c++0x] regex_replace is missing overloads Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: luto@mit.edu [re.alg.replace] says: template <class traits, class charT, class ST, class SA> basic_string<charT, ST, SA> regex_replace(const basic_string<charT, ST, SA>& s, const basic_regex<charT, traits>& e, const charT* fmt, regex_constants::match_flag_type flags = regex_constants::match_default); This doesn't compile, though: #include <string> #include <regex> int main() { std::regex_replace<std::regex_traits<char>, char>(std::string("x"), std::regex("x"), "y"); // works std::regex_replace(std::string("x"), std::regex("x"), "y"); // fails return 0; } The string,regex,string,flags overload doesn't work because the arguments aren't an exact match. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/53561] [c++0x] regex_replace is missing overloads 2012-06-02 2:06 [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads luto at mit dot edu @ 2012-06-02 2:09 ` luto at mit dot edu 2012-07-21 17:52 ` vallentin at icir dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: luto at mit dot edu @ 2012-06-02 2:09 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53561 Andy Lutomirski <luto at mit dot edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Andy Lutomirski <luto at mit dot edu> 2012-06-02 02:09:16 UTC --- Never mind. I just saw that the implementation isn't supposed to be done. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/53561] [c++0x] regex_replace is missing overloads 2012-06-02 2:06 [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads luto at mit dot edu 2012-06-02 2:09 ` [Bug libstdc++/53561] " luto at mit dot edu @ 2012-07-21 17:52 ` vallentin at icir dot org 2012-07-21 18:00 ` redi at gcc dot gnu.org 2023-07-20 11:26 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: vallentin at icir dot org @ 2012-07-21 17:52 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53561 Matthias Vallentin <vallentin at icir dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vallentin at icir dot org --- Comment #2 from Matthias Vallentin <vallentin at icir dot org> 2012-07-21 17:51:57 UTC --- (In reply to comment #1) > Never mind. I just saw that the implementation isn't supposed to be done. The documentation still mentions that regex_replace is not yet implemented: /** @todo Implement this function. */ Any ideas when we can start using it? Matthias ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/53561] [c++0x] regex_replace is missing overloads 2012-06-02 2:06 [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads luto at mit dot edu 2012-06-02 2:09 ` [Bug libstdc++/53561] " luto at mit dot edu 2012-07-21 17:52 ` vallentin at icir dot org @ 2012-07-21 18:00 ` redi at gcc dot gnu.org 2023-07-20 11:26 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2012-07-21 18:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53561 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-21 18:00:16 UTC --- When someone contributes an implementation of it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/53561] [c++0x] regex_replace is missing overloads 2012-06-02 2:06 [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads luto at mit dot edu ` (2 preceding siblings ...) 2012-07-21 18:00 ` redi at gcc dot gnu.org @ 2023-07-20 11:26 ` redi at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: redi at gcc dot gnu.org @ 2023-07-20 11:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53561 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |DUPLICATE --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- . *** This bug has been marked as a duplicate of bug 53631 *** ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-20 11:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-06-02 2:06 [Bug libstdc++/53561] New: [c++0x] regex_replace is missing overloads luto at mit dot edu 2012-06-02 2:09 ` [Bug libstdc++/53561] " luto at mit dot edu 2012-07-21 17:52 ` vallentin at icir dot org 2012-07-21 18:00 ` redi at gcc dot gnu.org 2023-07-20 11:26 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).