This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Leftover in bits/basic_string.h ?
- From: Pedro Lamarão <pedro dot lamarao at mndfck dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sat, 25 Nov 2006 20:47:24 -0200
- Subject: 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.