Opened 10 years ago
Closed 10 years ago
#7113 closed Feature Requests (fixed)
In date_time default case of switch is missing.
Reported by: | Owned by: | az_sw_dude | |
---|---|---|---|
Milestone: | To Be Determined | Component: | date_time |
Version: | Boost 1.51.0 | Severity: | Cosmetic |
Keywords: | Cc: | yogen.saini@… |
Description
In file boost/date_time/time_parsing.hpp default case of switch condition is missing at two places.Switch case should not be used without default case ideally.In case of default, code should break from the loop.
Attached patch is the fix for it.
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | time_parsing.hpp_patch added |
---|
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Severity: | Problem → Cosmetic |
Status: | new → closed |
Type: | Bugs → Feature Requests |
There are too much work to do to clean up Boost.DateTime. Re-open if some tool is warning a bad usage.
comment:2 by , 10 years ago
Similar Comment as in Ticket #7111 i.e
If our application is using "Werror" flag, then if default case is not mentioned ,it is reported as an error.
comment:3 by , 10 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:4 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
Fix for the reported Bug.