]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/94051.cc
libstdc++: allow string_view insertion to work with <iosfwd> (PR 94051)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 5 Mar 2020 16:46:28 +0000 (16:46 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 5 Mar 2020 16:46:28 +0000 (16:46 +0000)
commit6a7052832a4791047b0ff4f18dcbb55c93a7336c
tree6addaf9fa0be127a433b541597091627f7db8b10
parentc0e184b4ad4b28cbfc94290e8f1169a8297bb0de
libstdc++: allow string_view insertion to work with <iosfwd> (PR 94051)

I don't think this is actually required to compile, because using
operator<< without a definition of the ostream doesn't seem valid to me.
But it's easy to make it work.

PR libstdc++/94051
* include/std/string_view: Include <bits/ostream_insert.h>.
* testsuite/21_strings/basic_string_view/inserters/94051.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/94051.cc [new file with mode: 0644]