Add '_LIBCPP_ASSERT(ready())' to several match_results method that have this precondt...
authorMarshall Clow <mclow.lists@gmail.com>
Fri, 26 Apr 2019 17:10:03 +0000 (17:10 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Fri, 26 Apr 2019 17:10:03 +0000 (17:10 +0000)
commitc29db2d83ed57d74d1f9987324e3d6ef112a8ed3
treee536d665654fbac7d843633fb05fdef9979e25a9
parentefc94feef98a5d88eda8e2aee604fcb446dacfe7
Add '_LIBCPP_ASSERT(ready())' to several match_results method that have this precondtion. Fix several tests which did not honor this precondition. Thanks to Andrey Maksimov for pointing this out.

llvm-svn: 359324
libcxx/include/regex
libcxx/test/std/re/re.results/re.results.all/get_allocator.pass.cpp
libcxx/test/std/re/re.results/re.results.const/allocator.pass.cpp
libcxx/test/std/re/re.results/re.results.const/copy.pass.cpp
libcxx/test/std/re/re.results/re.results.const/copy_assign.pass.cpp
libcxx/test/std/re/re.results/re.results.const/default.pass.cpp
libcxx/test/std/re/re.results/re.results.const/move.pass.cpp
libcxx/test/std/re/re.results/re.results.const/move_assign.pass.cpp