This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Leftover in bits/basic_string.h ?


In bits/basic_string.h there is a specialization for char:

  template<>
    basic_istream<char>&
    operator>>(basic_istream<char>& __is, basic_string<char>& __str);

that seems out of place.
Aren't all explicit specializations declared in basic_string.tcc and
defined in misc-inst.cc?

The following patch removes it.

2006-11-25 Pedro LamarÃo <pedro.lamarao@mndfck.org>

	* include/bits/basic_string.h: remove leftover specialization;
        these should live in basic_string.tcc.

--
 Pedro LamarÃo
Index: libstdc++-v3/include/bits/basic_string.h
===================================================================
--- libstdc++-v3/include/bits/basic_string.h	(revisÃo 119211)
+++ libstdc++-v3/include/bits/basic_string.h	(cÃpia de trabalho)
@@ -2380,10 +2380,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
     operator>>(basic_istream<_CharT, _Traits>& __is,
 	       basic_string<_CharT, _Traits, _Alloc>& __str);
 
-  template<>
-    basic_istream<char>&
-    operator>>(basic_istream<char>& __is, basic_string<char>& __str);
-
   /**
    *  @brief  Write string to a stream.
    *  @param os  Output stream.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]