Don't use __glibcxx_assert to check class invariants
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Sep 2018 11:20:51 +0000 (12:20 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 19 Sep 2018 11:20:51 +0000 (12:20 +0100)
commitdc9acaa99b9e6b3553f64b362cd22f32e961d3dc
tree3bc222ed4f244f571335014c953f17367654cd81
parent3c5af60836eed835b818f2a87480155a497139a4
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[].

From-SVN: r264422
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_automaton.tcc