diff options
| author | bloodstalker <thabogre@gmail.com> | 2020-01-10 11:05:55 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2020-01-10 11:05:55 +0000 | 
| commit | fba22de6a97102158bf41f82b17826cca649a890 (patch) | |
| tree | 4e5366af403e065c352d01645a2928b91cfde2c0 | |
| parent | fix appveyor build [travis skip] (diff) | |
| download | cgrep-fba22de6a97102158bf41f82b17826cca649a890.tar.gz cgrep-fba22de6a97102158bf41f82b17826cca649a890.zip | |
travis fix
| -rw-r--r-- | cgrep.cpp | 10 | 
1 files changed, 7 insertions, 3 deletions
| @@ -153,15 +153,19 @@ static std::string get_line_from_file(SourceManager &SM, const MatchFinder::Matc   *   * @param path   */ +#if 0  static void dig(boost::filesystem::path dir, int argc, const char** argv) { -  for (const auto &entry : boost::filesystem::directory_iterator(dir)) { -    if (true == is_directory(entry)) { +  //just to be compatible with old gcc versions +  //for (const auto &entry : boost::filesystem::directory_iterator(dir)) { +  for (boost::filesystem::path::iterator entry = dir.begin(); entry != dir.end(); ++entry ) { +    if (true == is_directory(*entry)) {        auto cgrepInstance = build_cgrep_instance(argc, argv);        run_cgrep_instance(cgrepInstance); -      dig(entry.path(), argc, argv); +      dig((*entry).path(), argc, argv);      }    }  } +#endif  /**   * @brief does some preprocessing on the regex string we get as input | 
