diff options
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r-- | libcxx/include/regex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex index 690213a978d..39e106c4e4c 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -2599,9 +2599,7 @@ public: assign(_ForwardIterator __first, _ForwardIterator __last, flag_type __f = regex_constants::ECMAScript) { - __member_init(__f); - __parse(__first, __last); - return *this; + return assign(basic_regex(__first, __last, __f)); } #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS |