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)).

Change History (1)

comment:1 by Vladimir Prus, 15 years ago

Resolution: fixed
Status: newclosed

The problem was fixed with:

r33969 | vladimir_prus | 2006-05-15 18:05:47 +0400 (Mon, 15 May 2006) | 2 lines

is present on SVN HEAD and will be part of 1.35.

Note: See TracTickets for help on using tickets.