Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3753: Configuration file input errors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-12 06:11:42
#3753: Configuration file input errors.
--------------------------------------------+-------------------------------
Reporter: Alex Bukreev <bucreev@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: program_options
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
--------------------------------------------+-------------------------------
Comment(by s_ochsenknecht):
Hm, don't understand. CAn you clarify?
If something like "key = " (empty value) occurs in config file, it first
gets an empty string for the value.
The strings of all options are then converted to the appropriate type of
the related option (e.g. the string is converted to an integer for an
integer option etc.). We use boost::lexical_cast for doing this job.
If the conversion fails an exception invalid_option_value is thrown. E.g.
an empty string can not be converted to an integer, so it throws
exception. But an empty string can be converted to an empty string :-) ->
no exception.
What behavior do you expect?
Does this clarify?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3753#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC