basic_string.tcc (_S_string_copy): Unused, remove.
2003-01-15 Phil Edwards <pme@gcc.gnu.org> * include/bits/basic_string.tcc (_S_string_copy): Unused, remove. From-SVN: r61377
This commit is contained in:
parent
77480b0bea
commit
25ad7e06c6
|
@ -1,3 +1,7 @@
|
|||
2003-01-15 Phil Edwards <pme@gcc.gnu.org>
|
||||
|
||||
* include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
|
||||
|
||||
2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
|
||||
|
|
|
@ -930,18 +930,6 @@ namespace std
|
|||
return __r;
|
||||
}
|
||||
|
||||
template <class _CharT, class _Traits, class _Alloc>
|
||||
void
|
||||
_S_string_copy(const basic_string<_CharT, _Traits, _Alloc>& __str,
|
||||
_CharT* __buf, typename _Alloc::size_type __bufsiz)
|
||||
{
|
||||
typedef typename _Alloc::size_type size_type;
|
||||
size_type __strsize = __str.size();
|
||||
size_type __bytes = std::min(__strsize, __bufsiz - 1);
|
||||
_Traits::copy(__buf, __str.data(), __bytes);
|
||||
__buf[__bytes] = _CharT();
|
||||
}
|
||||
|
||||
// Inhibit implicit instantiations for required instantiations,
|
||||
// which are defined via explicit instantiations elsewhere.
|
||||
// NB: This syntax is a GNU extension.
|
||||
|
|
Loading…
Reference in New Issue