ある程度のドキュメントを読みましたが、VS2010に付属している現在のバージョンについて詳しく知っています。しかし今のところ、私はubuntu 8.04で立ち往生しており、1.34をブーストしていて、奇妙な種類のエラーが発生しています。誰かが私が間違っていることを言うことができますか?これがregex_searchboostv1.34のマニュアルページです。
これが私のコードで行っていることです:
std::string sLine;
getline(dataFile, sLine);
boost::match_results<std::string::const_iterator> lineSmatch;
boost::match_flag_type regFlags = boost::match_default;
boost::regex finalRegex(linePattern);
boost::regex_search(sLine.begin(), sLine.end(), lineSmatch, finalRegex, regFlags);
コンパイルエラーは次のとおりです。
エラー:'regex_search(__ gnu_cxx :: __ normal_iterator、std :: allocator >>、__gnu_cxx :: __ normal_iterator、std :: allocator >>、boost :: match_results <__ gnu_cxx :: __ normal_iterator、std::allocatorを呼び出すための一致する関数がありません>、std :: allocator、std :: allocator >> >> >>&、boost :: regex&、boost :: regex_constants :: match_flag_type&) '