|
Boost-Commit : |
From: hartmut.kaiser_at_[hidden]
Date: 2007-10-05 19:27:45
Author: hkaiser
Date: 2007-10-05 19:27:43 EDT (Fri, 05 Oct 2007)
New Revision: 39720
URL: http://svn.boost.org/trac/boost/changeset/39720
Log:
ProgramOptions: Silenced VC++ warnings.
Text files modified:
trunk/libs/program_options/src/cmdline.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/libs/program_options/src/cmdline.cpp
==============================================================================
--- trunk/libs/program_options/src/cmdline.cpp (original)
+++ trunk/libs/program_options/src/cmdline.cpp 2007-10-05 19:27:43 EDT (Fri, 05 Oct 2007)
@@ -290,8 +290,8 @@
// First check that the option is valid, and get its description.
// TODO: case-sensitivity.
- const option_description* xd =
- m_desc->find_nothrow(opt.string_key, (m_style & allow_guessing));
+ const option_description* xd = m_desc->find_nothrow(opt.string_key,
+ (m_style & allow_guessing) ? true : false);
if (!xd)
{
@@ -470,7 +470,8 @@
((m_style & allow_slash_for_short) && tok[0] == '/')))
{
if (m_desc->find_nothrow(tok.substr(1, tok.find('=')-1),
- m_style & allow_guessing)) {
+ (m_style & allow_guessing) ? true : false))
+ {
args[0].insert(0, "-");
if (args[0][1] == '/')
args[0][1] = '-';
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk