diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-10-08 14:36:16 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-10-08 14:36:16 +0000 |
commit | 2a4812fd0463d5320fe7871df67103219818bbb5 (patch) | |
tree | 9522264023a906e52ab4cf5afcbe7364a705fc62 /libcxx/include/regex | |
parent | 8a984e9418b014148735ca5f7e73f0cd7278cc9e (diff) | |
download | bcm5719-llvm-2a4812fd0463d5320fe7871df67103219818bbb5.tar.gz bcm5719-llvm-2a4812fd0463d5320fe7871df67103219818bbb5.zip |
Fix <rdar://problem/10255403> match_results::begin() is off by one
llvm-svn: 141494
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r-- | libcxx/include/regex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex index 5e195696ff2..760f4eb94dd 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -5210,11 +5210,11 @@ public: const_reference suffix() const {return __suffix_;} _LIBCPP_INLINE_VISIBILITY - const_iterator begin() const {return empty() ? __matches_.end() : __matches_.begin() + 1;} + const_iterator begin() const {return empty() ? __matches_.end() : __matches_.begin();} _LIBCPP_INLINE_VISIBILITY const_iterator end() const {return __matches_.end();} _LIBCPP_INLINE_VISIBILITY - const_iterator cbegin() const {return empty() ? __matches_.end() : __matches_.begin() + 1;} + const_iterator cbegin() const {return empty() ? __matches_.end() : __matches_.begin();} _LIBCPP_INLINE_VISIBILITY const_iterator cend() const {return __matches_.end();} |