We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f0b430 commit 9df75dbCopy full SHA for 9df75db
CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
16
### Removed
17
18
### Fixed
19
+- Don't define `ostream& operator<<(nullptr_t)` if already defined by Apple
20
21
### Security
22
cpp/unittest/OstreamHelpers.h
@@ -2,4 +2,8 @@
2
3
#include <ostream>
4
5
+#if (defined __apple_build_version__) && (__apple_build_version__ >= 12000000)
6
+// defined in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:223:20
7
+#else
8
inline std::ostream& operator << (std::ostream& out, const std::nullptr_t &np) { return out << "nullptr"; }
9
+#endif
0 commit comments