Skip to content

Commit d82c1cf

Browse files
author
James Foster
committed
Merge branch 'master' into tdd
2 parents c512f28 + 9df75db commit d82c1cf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
### Removed
1818

1919
### Fixed
20+
- Don't define `ostream& operator<<(nullptr_t)` if already defined by Apple
2021

2122
### Security
2223

cpp/unittest/OstreamHelpers.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
#include <ostream>
44

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
58
inline std::ostream& operator << (std::ostream& out, const std::nullptr_t &np) { return out << "nullptr"; }
9+
#endif

0 commit comments

Comments
 (0)