Ticket #9327: suncc_unit.diff

File suncc_unit.diff, 929 bytes (added by vz-boost@…, 9 years ago)

Proposed patch to fix the build with Sun CC

  • boost/test/impl/unit_test_main.ipp

    diff --git a/boost/test/impl/unit_test_main.ipp b/boost/test/impl/unit_test_main.ipp
    index 9874c69..6896343 100644
    a b public:  
    110110        string_token_iterator tit( tc_to_run, (dropped_delimeters = "/", kept_delimeters = dt_none) );
    111111
    112112        while( tit != string_token_iterator() ) {
    113             m_filters.push_back(
    114                 std::vector<single_filter>( string_token_iterator( *tit, (dropped_delimeters = ",", kept_delimeters = dt_none)  ),
    115                                             string_token_iterator() ) );
     113            std::vector<single_filter> f;
     114            for( string_token_iterator titf( *tit, (dropped_delimeters = ",", kept_delimeters = dt_none) ); titf != string_token_iterator(); ++titf )
     115                f.push_back( *titf );
     116
     117            m_filters.push_back( f );
    116118
    117119            ++tit;
    118120        }