Ignore:
Timestamp:
Sep 24, 2008, 2:02:16 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

BOOST_FOREACHを可能なものはVC++ 2005 for eachへ置換(やや速くなる)。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/ab_common/src/Lexical/Method.cpp

    r640 r750  
    9292Methods::Methods( const Methods &methods )
    9393{
    94     BOOST_FOREACH( CMethod *pMethod, methods )
     94    foreach( CMethod *pMethod, methods )
    9595    {
    9696        this->push_back( new DynamicMethod( dynamic_cast<DynamicMethod &>(*pMethod) ) );
     
    101101{
    102102    Methods &methods = *this;
    103     BOOST_FOREACH( CMethod *pMethod, methods )
     103    foreach( CMethod *pMethod, methods )
    104104    {
    105105        delete pMethod;
     
    122122    //メソッドのオーバーライド
    123123    Methods &methods = *this;
    124     BOOST_FOREACH( CMethod *pMethod, methods )
     124    foreach( CMethod *pMethod, methods )
    125125    {
    126126        if( !pMethod->IsNotUse() && pMethod->GetUserProc().IsEqualForOverride( actualTypeParametersForThisMethods, pUserProc ) )
     
    145145{
    146146    const Methods &methods = *this;
    147     BOOST_FOREACH( const CMethod *pMethod, methods ){
     147    foreach( const CMethod *pMethod, methods ){
    148148        if( pMethod->GetUserProc().GetName() == name ) return true;
    149149    }
     
    181181    int count = 0;
    182182    const Methods &methods = *this;
    183     BOOST_FOREACH( const CMethod *pMethod, methods )
     183    foreach( const CMethod *pMethod, methods )
    184184    {
    185185        if( pMethod->IsVirtual() )
Note: See TracChangeset for help on using the changeset viewer.