5 Dec
2019
5 Dec
'19
8:15 a.m.
``` void fixed_string<N>::resize(size_type s) { BOOST_FIXED_STRING_PRECONDITION(s <= this->capacity()); // then do the job } ```
+1 on that. I'm always advocating for safe-by-default and found it a huge mistake to make operator[] the unchecked one instead of at() So using BOOST_FIXED_STRING_PRECONDITION which throws by default is the right choice IMO.