diff options
-rw-r--r-- | vespalib/src/vespa/vespalib/testkit/test_master.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/testkit/test_master.hpp b/vespalib/src/vespa/vespalib/testkit/test_master.hpp index 8a5f7eb337b..f165458c9aa 100644 --- a/vespalib/src/vespa/vespalib/testkit/test_master.hpp +++ b/vespalib/src/vespa/vespalib/testkit/test_master.hpp @@ -4,10 +4,10 @@ namespace vespalib { -#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 9 +#if (!defined(__clang__) && defined(__GNUC__) && __GNUC__ < 9) || (defined(__clang__) && defined(__apple_build_version__)) // cf. https://cplusplus.github.io/LWG/issue2221 template<class charT, class traits> -std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, traits>& os, nullptr_t) +std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, traits>& os, std::nullptr_t) { return os << (void*) nullptr; } |