[multiple changes]

Tue Mar 24 10:13:07 1998  Jason Merrill  <jason@yorick.cygnus.com>
        * std/bastring.cc (basic_string::copy): Mark const here, too.
1998-03-23 15:59  Ulrich Drepper  <drepper@cygnus.com>
        * std/bastring.h (basic_string::copy): Mark copy function as const.
        Reported by Scott Schurr <scotts@ims.com>.
Bring over from devo.

From-SVN: r19684
This commit is contained in:
Jeff Law 1998-05-11 16:04:43 -06:00
parent 881060d07f
commit fc438e2ad0
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,12 @@
Tue Mar 24 10:13:07 1998 Jason Merrill <jason@yorick.cygnus.com>
* std/bastring.cc (basic_string::copy): Mark const here, too.
1998-03-23 15:59 Ulrich Drepper <drepper@cygnus.com>
* std/bastring.h (basic_string::copy): Mark copy function as const.
Reported by Scott Schurr <scotts@ims.com>.
Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
* configure.in: Make locating frag files failsafe even for the

View File

@ -228,7 +228,7 @@ resize (size_type n, charT c)
template <class charT, class traits, class Allocator>
basic_string <charT, traits, Allocator>::size_type
basic_string <charT, traits, Allocator>::
copy (charT* s, size_type n, size_type pos)
copy (charT* s, size_type n, size_type pos) const
{
OUTOFRANGE (pos > length ());

View File

@ -296,7 +296,7 @@ public:
{ resize (n, eos ()); }
void reserve (size_type) { }
size_type copy (charT* s, size_type n, size_type pos = 0);
size_type copy (charT* s, size_type n, size_type pos = 0) const;
size_type find (const basic_string& str, size_type pos = 0) const
{ return find (str.data(), pos, str.length()); }