[過去ログ] Boostを語れゴラァ part3 (1001レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
87: 73 2006/10/11(水)22:23 AAS
class Test{
public:
 Test(std::wstring s):str(s){};
 std::wstring str;
private:
 friend class boost::serialization::access;
 template<class Archive> void serialize(Archive& ar, const unsigned int version){
  ar & str;
 }
};

int main(int, char**){
 std::wcout.imbue(std::locale(""));
 Test te(_T("日本語文字列の入力テスト"));
#if 1
 std::wofstream ofs(_T("out.txt"));
 boost::archive::text_woarchive oa(ofs);
 oa & te;
 ofs.close();
 std::wifstream ifs(_T("out.txt"));
 boost::archive::text_wiarchive ia(ifs);
 ia & te;
 ifs.close();
 std::wcout << te.str << std::endl;
#elif 1
 boost::archive::text_woarchive ar(std::wcout);
 ar & te;
#endif
 return 0;
}
1-
あと 914 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.014s