Don't use __glibcxx_assert to check class invariants
commitdeb2e908753c18aa3075ae792254894b508d6d75
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 11:20:51 +0000 (19 11:20 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Sep 2018 11:20:51 +0000 (19 11:20 +0000)
tree3bc222ed4f244f571335014c953f17367654cd81
parent97bffee9a1bd6cfa17feca4cb7a28455fb91d40b
Don't use __glibcxx_assert to check class invariants

Assertions should be used to check preconditions that users must meet,
not to check whether the implementation is correct.

* include/bits/regex_automaton.tcc (_StateSeq<_TraitsT>::_M_clone()):
Remove __glibcxx_assert statements and use map::find instead of
map::operator[].

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264422 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_automaton.tcc