From: Benjamin Kosnik Date: Thu, 2 Sep 2004 18:58:34 +0000 (+0000) Subject: re PR libstdc++/16715 (std::basic_iostream is instantiated when used, even though... X-Git-Tag: releases/gcc-4.0.0~5286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98599ff8ba98eedc4c4e62954b8d9d125efd7a17;p=thirdparty%2Fgcc.git 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 73132177677d..0f4816b6dea9 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 09339e919df7..2399b8b1e358 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