Changeset 81791


Ignore:
Timestamp:
Dec 8, 2012, 11:43:22 AM (6 years ago)
Author:
viboes
Message:

Test: fix shared_ptr implicit conversion to bool introduced in [81780]

Location:
trunk/boost/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/test/tools/assertion.hpp

    r81362 r81791  
    286286    template<typename T>
    287287    ExprType&
    288     operator ||( T const& rhs )
     288    operator ||( T const& )
    289289    {
    290290        BOOST_MPL_ASSERT_MSG(false, CANT_USE_LOGICAL_OPERATOR_OR_WITHIN_THIS_TESTING_TOOL, () );
     
    295295    template<typename T>
    296296    ExprType&
    297     operator &&( T const& rhs )
     297    operator &&( T const& )
    298298    {
    299299        BOOST_MPL_ASSERT_MSG(false, CANT_USE_LOGICAL_OPERATOR_AND_WITHIN_THIS_TESTING_TOOL, () );
     
    373373    template<typename U>
    374374    static void format_message( wrap_stringstream& ostr, U const& v )    { ostr << "(bool)" << v << " is false"; }
    375     static void format_message( wrap_stringstream& ostr, bool v )        {}
     375    static void format_message( wrap_stringstream& , bool )        {}
    376376
    377377    // Data members
  • trunk/boost/test/utils/runtime/cla/parameter.hpp

    r81012 r81791  
    7979
    8080    // access methods
    81     bool            has_argument() const                        { return m_actual_argument; }
     81    bool            has_argument() const                        { return m_actual_argument!=0; }
    8282    argument const& actual_argument() const                     { return *m_actual_argument; }
    8383    argument_ptr    actual_argument()                           { return m_actual_argument; }
  • trunk/boost/test/utils/runtime/env/variable.hpp

    r81012 r81791  
    7575    }
    7676
    77     bool        has_value() const   { return m_data->m_value; }
     77    bool        has_value() const   { return m_data->m_value!=0; }
    7878    cstring     name() const        { return m_data->m_var_name; }
    7979
Note: See TracChangeset for help on using the changeset viewer.