Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#3992 closed Bugs (fixed)

Example in documentation for program_options doesn't compile

Reported by: Alexander Fokin <ru.elric@…> Owned by: Vladimir Prus
Milestone: Boost 1.43.0 Component: program_options
Version: Boost 1.42.0 Severity: Cosmetic
Keywords: Cc:

Description

Example in "Custom Validators" section of documentation for boost_program options must be changed to reflect the changes made in 1.42. More precisely, the following line of the example causes compilation error:

throw validation_error("invalid value");

I suppose it must be changed to something like:

throw invalid_option_value(s)

Change History (4)

comment:1 by Marshall Clow, 12 years ago

(In [67028]) update docs; refs #3992

comment:2 by ru.elric@…, 12 years ago

There is a typo in [67028] ("valodation_error" instead of "validation_error").

comment:3 by Marshall Clow, 12 years ago

Resolution: fixed
Status: newclosed

(In [67034]) Merge doc patches to release; fixes #3992, fixes #4858

comment:4 by Marshall Clow, 12 years ago

Sigh. Fixed typo on trunk and release.

Note: See TracTickets for help on using tickets.