#493 closed Bugs (fixed)
format: assert when parsing invalid pattern
| Reported by: | plindovsky | Owned by: | Samuel Krempp |
|---|---|---|---|
| Milestone: | Component: | format | |
| Version: | None | Severity: | Problem |
| Keywords: | Cc: |
Description (last modified by )
An assert occurs in fmter.parse in the following code:
boost::format fmter;
fmter.exceptions(boost::io::no_error_bits);
fmter.parse("Unknown option mask %1$06x%");
Change History (3)
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|---|
| Severity: | → Problem |
| Status: | assigned → new |
comment:2 by , 15 years ago
| Resolution: | None → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 15 years ago
| Component: | None → format |
|---|---|
| Description: | modified (diff) |
Note:
See TracTickets
for help on using tickets.

The exception bitmask set is no_error_bits, thus critical errors lead to assertions instead of exceptions.
Now, this trailing '%' is not really critical. Thus I changed the code to handle that more quietly. (revision 38730)