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/ObjectModule.cpp

    r640 r750  
    1111#include <sstream>
    1212
     13#define WIN32_LEAN_AND_MEAN
    1314#include <windows.h>
    1415#include <stdio.h>
    1516#include <string.h>
    1617#include <math.h>
    17 #include <commctrl.h>
    1818#include <time.h>
    1919#include <limits.h>
    2020#include <shlobj.h>
    21 #include <process.h>
    22 #include <fcntl.h>
    23 #include <io.h>
    24 #include <shlwapi.h>
    2521#include <tchar.h>
    26 #include <stdarg.h>
    2722
    2823//boost libraries
     
    5247#include <boost/serialization/export.hpp>
    5348
     49#define foreach(v, c) for each (v in c)
     50
    5451#include <jenga/include/jenga.h>
    5552#include <abdev/ab_common/include/ab_common.h>
     
    9996
    10097    // リレーションテーブルを構築
    101     BOOST_FOREACH( const std::string &oldRelationalObjectModuleName, oldRelationalObjectModuleNames )
     98    foreach( const std::string &oldRelationalObjectModuleName, oldRelationalObjectModuleNames )
    10299    {
    103100        bool isMatch = false;
     
    141138        isSuccessful = true;
    142139    }
    143     catch( boost::archive::archive_exception e )
     140    catch( boost::archive::archive_exception& e )
    144141    {
    145142        MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK );
     
    174171        isSuccessful = true;
    175172    }
    176     catch( boost::archive::archive_exception e )
     173    catch( boost::archive::archive_exception& e )
    177174    {
    178175        MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK );
     
    209206        isSuccessful = true;
    210207    }
    211     catch( boost::archive::archive_exception e )
     208    catch( boost::archive::archive_exception& e )
    212209    {
    213210        MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK );
     
    245242        isSuccessful = true;
    246243    }
    247     catch( boost::archive::archive_exception e )
     244    catch( boost::archive::archive_exception &e )
    248245    {
    249246        MessageBox( NULL, e.what(), "XMLシリアライズの例外", MB_OK );
Note: See TracChangeset for help on using the changeset viewer.