Subject: [Boost-bugs] [Boost C++ Libraries] #11905: Exception "character conversion failed" when omitting argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-12 14:11:09
#11905: Exception "character conversion failed" when omitting argument
---------------------------------------+-----------------------------
Reporter: Thibaut Lepage <dourak@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: program_options
Version: Boost 1.60.0 | Severity: Problem
Keywords: |
---------------------------------------+-----------------------------
Hello,
The minimal example I attached simply assigns the value of the optional
parameter -i to an int.
When the parameter is given (./a.out -i 42), the program exits normally.
But if I omit the parameter (./a.out), then the exception "character
conversion failed" is raised.
It doesn't matter whether the option is "required" or not, or whether a
default value is given.
Configuration for which I found the bug:
CentOS: 7.2
gcc: 4.8.5
boost: both 1.60.0 and 1.54.0
Configuration for which the bug does not occur:
Linux Mint 17.2
gcc 4.8.4
boost 1.54.0
Regards,
Thibaut Lepage
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11905> 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:19 UTC