[libcxx] r242864 - Fix initializer list order in <regex> to be correct

Eric Fiselier eric at efcs.ca
Tue Jul 21 18:29:42 PDT 2015


Author: ericwf
Date: Tue Jul 21 20:29:41 2015
New Revision: 242864

URL: http://llvm.org/viewvc/llvm-project?rev=242864&view=rev
Log:
Fix initializer list order in <regex> to be correct

Modified:
    libcxx/trunk/include/regex

Modified: libcxx/trunk/include/regex
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/regex?rev=242864&r1=242863&r2=242864&view=diff
==============================================================================
--- libcxx/trunk/include/regex (original)
+++ libcxx/trunk/include/regex Tue Jul 21 20:29:41 2015
@@ -2952,7 +2952,7 @@ public:
 
     _LIBCPP_INLINE_VISIBILITY
     __lookahead(const basic_regex<_CharT, _Traits>& __exp, bool __invert, __node<_CharT>* __s, unsigned __mexp)
-        : base(__s), __exp_(__exp), __invert_(__invert), __mexp_(__mexp) {}
+        : base(__s), __exp_(__exp), __mexp_(__mexp), __invert_(__invert) {}
 
     virtual void __exec(__state&) const;
 };
@@ -5421,8 +5421,8 @@ match_results<_BidirectionalIterator, _A
       __unmatched_(),
       __prefix_(),
       __suffix_(),
-      __position_start_(),
-      __ready_(false)
+      __ready_(false),
+      __position_start_()
 {
 }
 





More information about the cfe-commits mailing list