Commit a4e471c98ad0557b745d07c50115d8ba6fb2e40b

Authored by Jordi Inglada
1 parent 24b80d56
Exists in master

Check gcc version for filesystem

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
include/cbutils.h
... ... @@ -26,8 +26,15 @@
26 26 #include <cassert>
27 27 #include <chrono>
28 28 #include <iomanip>
29   -#include <experimental/filesystem>
30 29 #include <regex>
  30 +
  31 +#if __GNUC__ == 8
  32 +#if __GNUC_MINOR__ == 2
  33 +#include <filesystem>
  34 +#else
  35 +#include <experimental/filesystem>
  36 +#endif
  37 +#endif
31 38 namespace cbutils
32 39 {
33 40 // ----------------- String manipulation ---------------------------------------
... ...