We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c512f28 + 9df75db commit d82c1cfCopy full SHA for d82c1cf
CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
17
### Removed
18
19
### Fixed
20
+- Don't define `ostream& operator<<(nullptr_t)` if already defined by Apple
21
22
### Security
23
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