Ignore:
Timestamp:
Jul 17, 2007, 3:44:11 PM (17 years ago)
Author:
dai_9181
Message:

BoostSerializationSupportのクラステンプレートインスタンスを明示的に生成するようにした(コンパイル時間の短縮)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/include/MetaImpl.h

    r212 r215  
    11#pragma once
    22
    3 #include <jenga/include/common/BoostSerializationSupport.h>
     3#include <BoostSerializationSupport.h>
    44
    55#include <option.h>
     
    153153        return procPointers;
    154154    }
    155 
    156     bool AutoWrite( const std::string &filePath )
    157     {
    158         std::ofstream ofs( filePath.c_str() );
    159 
    160         bool isSuccessful = false;
    161         try{
    162             boost::archive::xml_oarchive oa(ofs);
    163 
    164             // ファイルから読込
    165             oa << boost::serialization::make_nvp( RootTagName(), *this );
    166 
    167             isSuccessful = true;
    168         }
    169         catch(...){
    170             // 失敗
    171         }
    172 
    173         // 入力を閉じる
    174         ofs.close();
    175 
    176         return isSuccessful;
    177     }
    178155};
Note: See TracChangeset for help on using the changeset viewer.