mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-19 01:54:19 +08:00
char_traits.h (move): Reverse qualification of memmove with std::.
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com> * include/bits/char_traits.h (move): Reverse qualification of memmove with std::. (copy): Reverse qualification of memcpy with std::. From-SVN: r42856
This commit is contained in:
parent
c940f36d68
commit
c0e17dafb2
@ -1,3 +1,9 @@
|
||||
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
|
||||
|
||||
* include/bits/char_traits.h (move): Reverse qualification of
|
||||
memmove with std::.
|
||||
(copy): Reverse qualification of memcpy with std::.
|
||||
|
||||
2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
|
||||
|
||||
* include/bits/char_traits.h (move): Qualify memmove with std::.
|
||||
|
@ -93,11 +93,11 @@ namespace std
|
||||
|
||||
static char_type*
|
||||
move(char_type* __s1, const char_type* __s2, size_t __n)
|
||||
{ return (char_type*) std::memmove(__s1, __s2, __n * sizeof(char_type)); }
|
||||
{ return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); }
|
||||
|
||||
static char_type*
|
||||
copy(char_type* __s1, const char_type* __s2, size_t __n)
|
||||
{ return (char_type*) std::memcpy(__s1, __s2, __n * sizeof(char_type)); }
|
||||
{ return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); }
|
||||
|
||||
static char_type*
|
||||
assign(char_type* __s, size_t __n, char_type __a)
|
||||
|
Loading…
Reference in New Issue
Block a user