Implement LWG 2221: formatted output operator for nullptr

Programming / Compilers / GCC - redi [138bc75d-0d04-0410-961f-82ee72b054a4] - 10 January 2019 13:14 EST

2019-01-10 Ville Voutilainen Jonathan Wakely

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.

ac9a84363ea Implement LWG 2221: formatted output operator for nullptr
libstdc++-v3/ChangeLog | 14 ++++++++
libstdc++-v3/config/abi/pre/gnu.ver | 8 +++--
libstdc++-v3/include/std/ostream | 6 ++++
libstdc++-v3/src/c++17/Makefile.am | 3 +-
libstdc++-v3/src/c++17/Makefile.in | 8 +++--
libstdc++-v3/src/c++17/ostream-inst.cc | 42 ++++++++++++++++++++++
.../basic_ostream/inserters_other/char/lwg2221.cc | 9 +++++
7 files changed, 84 insertions(+), 6 deletions(-)

Upstream: gcc.gnu.org


  • Share