re PR libstdc++/16715 (std::basic_iostream is instantiated when used, even though...
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 2 Sep 2004 18:58:34 +0000 (18:58 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 2 Sep 2004 18:58:34 +0000 (18:58 +0000)
2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
            Simon Richter  <Simon.Richter@hogyros.de>

PR libstdc++/16715
* include/bits/istream.tcc: Add extern template for iostream
char and wchar_t instantiations.

Co-Authored-By: Simon Richter <Simon.Richter@hogyros.de>
From-SVN: r86980

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/istream.tcc

index 73132177677d6d6088b1278a6b17e2506fd08e3b..0f4816b6dea9dfe7e1db4e52eb870dddb82e6ef1 100644 (file)
@@ -1,3 +1,10 @@
+2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
+            Simon Richter  <Simon.Richter@hogyros.de>
+       
+       PR libstdc++/16715
+       * include/bits/istream.tcc: Add extern template for iostream
+       char and wchar_t instantiations.
+
 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
             Leland Wang  <llwang@infor.org>
        
index 09339e919df7b7d46fb385b84a3d41f907328f9a..2399b8b1e35843afd556131a7bd6b738fb4ea180 100644 (file)
@@ -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<char>;
+
 #ifdef _GLIBCXX_USE_WCHAR_T
   extern template class basic_istream<wchar_t>;
   extern template wistream& ws(wistream&);
   extern template wistream& operator>>(wistream&, wchar_t&);
   extern template wistream& operator>>(wistream&, wchar_t*);
+
+  extern template class basic_iostream<wchar_t>;
 #endif
 #endif
 } // namespace std