Ticket #3436: cla.patch

File cla.patch, 1.7 KB (added by Andrey Semashev, 13 years ago)

The fix for code miscompilation on MSVC 7.1

  • ./boost/test/utils/runtime/cla/

    old new  
    132132
    133133template<typename Parameter,typename Modifier>
    134134inline shared_ptr<Parameter>
    135 operator-( shared_ptr<Parameter> p, Modifier const& m )
     135operator-( shared_ptr<Parameter> const& p, Modifier const& m )
    136136{
    137137    p->accept_modifier( m );
    138138
  • ./boost/test/utils/runtime/cla/

    old new  
    5252
    5353    template<typename Param>
    5454    global_mod_parser const&
    55     operator<<( shared_ptr<Param> param ) const
     55    operator<<( shared_ptr<Param> const& param ) const
    5656    {
    5757        param->accept_modifier( m_modifiers );
    5858
     
    8181    explicit            parser( cstring program_name = cstring() );
    8282
    8383    // parameter list construction interface
    84     parser&             operator<<( parameter_ptr param );
     84    parser&             operator<<( parameter_ptr const& param );
    8585
    8686    // parser and global parameters modifiers
    8787    template<typename Modifier>
  • ./boost/test/utils/runtime/cla/

    old new  
    8080//____________________________________________________________________________//
    8181
    8282BOOST_RT_PARAM_INLINE parser&
    83 parser::operator<<( parameter_ptr new_param )
     83parser::operator<<( parameter_ptr const& new_param )
    8484{
    8585    BOOST_TEST_FOREACH( parameter_ptr, old_param, m_parameters ) {
    8686        BOOST_RT_PARAM_VALIDATE_LOGIC( !old_param->conflict_with( *new_param ),