Boost C++ Libraries: Ticket #4656: program_options parse_config_file() set iostream failbit even if the parse result is ok https://svn.boost.org/trac10/ticket/4656 <p> program_options::parse_config_file() reads data from an ifstream instance. It updates the failbit value of this stream when the file reads are ok. </p> <p> Test case is attached : </p> <p> $ ./foo <br /> ios failure: failbit: 1 - badbit: 0<br /> perror() value : test.cfg: No such file or directory<br /> $ touch test.cfg<br /> $ ./foo <br /> opening test.cfg: failbit: 0 - badbit: 0<br /> let s call parse_config_file()...<br /> ios failure: failbit: 1 - badbit: 0<br /> perror() value : test.cfg: Success<br /> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4656 Trac 1.4.3 anonymous Fri, 17 Sep 2010 15:46:13 GMT attachment set https://svn.boost.org/trac10/ticket/4656 https://svn.boost.org/trac10/ticket/4656 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">foo.cpp</span> </li> </ul> Ticket anonymous Fri, 17 Sep 2010 15:50:57 GMT <link>https://svn.boost.org/trac10/ticket/4656#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4656#comment:1</guid> <description> <p> wrong attachment. Here is the good one. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 17 Sep 2010 15:58:16 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4656 https://svn.boost.org/trac10/ticket/4656 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">failbit.cpp</span> </li> </ul> Ticket Vladimir Prus Sat, 08 Jan 2011 10:36:13 GMT <link>https://svn.boost.org/trac10/ticket/4656#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4656#comment:2</guid> <description> <p> Why is that a problem? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 19 Mar 2011 09:26:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4656#comment:3 https://svn.boost.org/trac10/ticket/4656#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Because I was not advised why is this a problem, I am closing this issue. Feel free to reopen should you have more details. </p> Ticket