OSDN Git Service

Tue Mar 24 10:13:07 1998 Jason Merrill <jason@yorick.cygnus.com>
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 May 1998 22:04:43 +0000 (22:04 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 May 1998 22:04:43 +0000 (22:04 +0000)
        * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19684 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++/ChangeLog
libstdc++/std/bastring.cc
libstdc++/std/bastring.h

index 0474492..f3592ad 100644 (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
index 30a2382..fca6f29 100644 (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 ());
 
index cbc6e43..8b009a4 100644 (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()); }