From 8a71fa90ff764caeb9a22c5b8d59dec2ce501797 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 May 2017 12:54:30 +0200 Subject: Clang's libc++ workaround --- libbutl/filesystem.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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> iters_; +#else small_vector, 1> iters_; +#endif }; // Search for paths matching the pattern and call the specified function for -- cgit v1.1