Opened 15 years ago
Closed 15 years ago
#1275 closed Bugs (fixed)
boost::program_options::validation_error::what() is private
Reported by: | anonymous | Owned by: | Vladimir Prus |
---|---|---|---|
Milestone: | To Be Determined | Component: | program_options |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | Cc: |
Description
The what() method of boost::program_options::validation_error is private, making it impossible to properly display the error message to the user (we have to catch or upcast to boost::program_options::error, whose what() doesn't provide the same level of detail (i.e. the option name)).
Note:
See TracTickets
for help on using tickets.
The problem was fixed with:
is present on SVN HEAD and will be part of 1.35.