llvm-project/libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted
Joe Loser 50cfb76e02
[libc++] Define ostream nullptr inserter for >= C++17 only
The `ostream` `nullptr` inserter implemented in 3c125fe is missing a C++ version
guard. Normally, `libc++` takes the stance of backporting LWG issues to older
standards modes as was done in 3c125fe. However, backporting to older standards
modes breaks existing code in popular libraries such as `Boost.Test` and
`Google Test` who define their own overload for `nullptr_t`.

Instead, only apply this `operator<<` overload in C++17 or later.

Fixes https://github.com/llvm/llvm-project/issues/55861.

Differential Revision: https://reviews.llvm.org/D127033
2022-07-19 18:16:45 -06:00
..
ostream.formatted.reqmts
ostream.inserters [libc++] Define ostream nullptr inserter for >= C++17 only 2022-07-19 18:16:45 -06:00
ostream.inserters.arithmetic [libcxx] [test] Avoid spurious test breakage in clang-cl-dll configs with newer CMake 2022-04-01 10:14:17 +03:00
ostream.inserters.character [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00