diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-02 12:54:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-02 12:54:30 +0200 |
commit | 8a71fa90ff764caeb9a22c5b8d59dec2ce501797 (patch) | |
tree | 10c104b08eeef5edf57e8f8b86588d43f44fa051 | |
parent | 5666053da046b94f8fd7bae0b6e35196347ce8be (diff) |
Clang's libc++ workaround
-rw-r--r-- | libbutl/filesystem.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx index 6a64073..b6b6b5b 100644 --- a/libbutl/filesystem.cxx +++ b/libbutl/filesystem.cxx @@ -1229,7 +1229,14 @@ namespace butl bool self_; bool follow_symlinks_; preopen preopen_; + + // @@ Some issue with libc++ (reproducible on FreeBSD 11 with Clang 3.8). + // +#ifdef _LIBCPP_VERSION + std::vector<pair<dir_iterator, dir_path>> iters_; +#else small_vector<pair<dir_iterator, dir_path>, 1> iters_; +#endif }; // Search for paths matching the pattern and call the specified function for |