Implement LWG 2221: formatted output operator for nullptr
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 10 Jan 2019 13:14:57 +0000 (15:14 +0200)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 10 Jan 2019 13:14:57 +0000 (13:14 +0000)
commitc3799b164fac7576ada4cad5a5069cbe911b4849
treef84fa45aa7f81f4cb7d7a541bd155b083ede00ec
parente222497dcb808dc0c8e24dcded5b90bac4b59122
Implement LWG 2221: formatted output operator for nullptr

2019-01-10  Ville Voutilainen  <ville.voutilainen@gmail.com>
    Jonathan Wakely  <jwakely@redhat.com>

Implement LWG 2221
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten patterns.
(GLIBCXX_3.4.26): Add new exports.
* include/Makefile.am: Add ostream-inst.cc. Move string-inst.cc to
correct list of sources.
* include/Makefile.in: Regenerate.
* include/std/ostream (operator<<(nullptr_t)): New member function.
* src/c++17/ostream-inst.cc: New file.
* testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc: New
test.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r267808
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/include/std/ostream
libstdc++-v3/src/c++17/Makefile.am
libstdc++-v3/src/c++17/Makefile.in
libstdc++-v3/src/c++17/ostream-inst.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/lwg2221.cc [new file with mode: 0644]