| 285 | } |
| 286 | |
| 287 | void null_char() { |
| 288 | // ISO/IEC 14882:1998(E), ISO/IEC 14882:2003(E), 21.3.4 ('... the const version') |
| 289 | const TStringType s(Data_._123456()); |
| 290 | |
| 291 | UNIT_ASSERT(s[s.size()] == 0); |
| 292 | } |
| 293 | |
| 294 | // Allowed since C++17, see http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2475 |
| 295 | void null_char_assignment_to_subscript_of_empty() { |