|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82756 - in trunk/boost/test/utils/runtime: cla env
From: gennadiy.rozental_at_[hidden]
Date: 2013-02-06 20:26:22
Author: rogeeff
Date: 2013-02-05 22:26:15 EST (Tue, 05 Feb 2013)
New Revision: 82756
URL: http://svn.boost.org/trac/boost/changeset/82756
Log:
fix shared_ptr in bool context
Text files modified:
trunk/boost/test/utils/runtime/cla/parameter.hpp | 2 +-
trunk/boost/test/utils/runtime/env/variable.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/test/utils/runtime/cla/parameter.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/cla/parameter.hpp (original)
+++ trunk/boost/test/utils/runtime/cla/parameter.hpp 2013-02-05 22:26:15 EST (Tue, 05 Feb 2013)
@@ -78,7 +78,7 @@
}
// access methods
- bool has_argument() const { return m_actual_argument; }
+ bool has_argument() const { return !!m_actual_argument; }
argument const& actual_argument() const { return *m_actual_argument; }
argument_ptr actual_argument() { return m_actual_argument; }
void reset() { m_actual_argument.reset(); }
Modified: trunk/boost/test/utils/runtime/env/variable.hpp
==============================================================================
--- trunk/boost/test/utils/runtime/env/variable.hpp (original)
+++ trunk/boost/test/utils/runtime/env/variable.hpp 2013-02-05 22:26:15 EST (Tue, 05 Feb 2013)
@@ -74,7 +74,7 @@
res.reset();
}
- bool has_value() const { return m_data->m_value; }
+ bool has_value() const { return !!m_data->m_value; }
cstring name() const { return m_data->m_var_name; }
protected:
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