Commit 04231f60 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on Clang with GCC's stdlib

parent f1b66b58
...@@ -298,8 +298,9 @@ bool engine::run(bool colorize, ...@@ -298,8 +298,9 @@ bool engine::run(bool colorize,
size_t total_bad_expected = 0; size_t total_bad_expected = 0;
auto bar = '+' + std::string(70, '-') + '+'; auto bar = '+' + std::string(70, '-') + '+';
auto failed_require = false; auto failed_require = false;
# if !defined(__clang__) && defined(__GNUC__) \ # if (!defined(__clang__) && defined(__GNUC__) \
&& __GNUC__ == 4 && __GNUC_MINOR__ < 9 && __GNUC__ == 4 && __GNUC_MINOR__ < 9) \
|| (defined(__clang__) && !defined(_LIBCPP_VERSION))
// regex implementation is broken prior to 4.9 // regex implementation is broken prior to 4.9
using strvec = std::vector<std::string>; using strvec = std::vector<std::string>;
auto from_psv = [](const std::string& psv) -> strvec { auto from_psv = [](const std::string& psv) -> strvec {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment