[PATCH] [libcxx] Fix match_results for alternatives

Marshall Clow mclow.lists at gmail.com
Sat Jan 24 12:48:11 PST 2015


================
Comment at: test/std/re/re.results/re.results.acc/index.pass.cpp:26
@@ -25,3 +25,3 @@
 
     assert(m[0].first == s+2);
     assert(m[0].second == s+9);
----------------
Ok, then I'm really confused.

The code for `match_results::operator[]` is:
     return __n < __matches_.size() ? __matches_[__n] : __unmatched_;

So how does the change in `<regex>` affect this result?

http://reviews.llvm.org/D7111

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list