From 98599ff8ba98eedc4c4e62954b8d9d125efd7a17 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 2 Sep 2004 18:58:34 +0000 Subject: [PATCH] re PR libstdc++/16715 (std::basic_iostream is instantiated when used, even though instantiations are already contained in libstdc++) 2004-09-02 Benjamin Kosnik Simon Richter PR libstdc++/16715 * include/bits/istream.tcc: Add extern template for iostream char and wchar_t instantiations. Co-Authored-By: Simon Richter From-SVN: r86980 --- libstdc++-v3/ChangeLog | 7 +++++++ libstdc++-v3/include/bits/istream.tcc | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 73132177677..0f4816b6dea 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2004-09-02 Benjamin Kosnik + Simon Richter + + PR libstdc++/16715 + * include/bits/istream.tcc: Add extern template for iostream + char and wchar_t instantiations. + 2004-09-02 Benjamin Kosnik Leland Wang diff --git a/libstdc++-v3/include/bits/istream.tcc b/libstdc++-v3/include/bits/istream.tcc index 09339e919df..2399b8b1e35 100644 --- a/libstdc++-v3/include/bits/istream.tcc +++ b/libstdc++-v3/include/bits/istream.tcc @@ -1288,11 +1288,15 @@ namespace std extern template istream& operator>>(istream&, unsigned char*); extern template istream& operator>>(istream&, signed char*); + extern template class basic_iostream; + #ifdef _GLIBCXX_USE_WCHAR_T extern template class basic_istream; extern template wistream& ws(wistream&); extern template wistream& operator>>(wistream&, wchar_t&); extern template wistream& operator>>(wistream&, wchar_t*); + + extern template class basic_iostream; #endif #endif } // namespace std -- 2.30.2