From fc438e2ad07c189dfe97f148205cee9d5d312352 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 11 May 1998 16:04:43 -0600 Subject: [PATCH] [multiple changes] Tue Mar 24 10:13:07 1998 Jason Merrill * std/bastring.cc (basic_string::copy): Mark const here, too. 1998-03-23 15:59 Ulrich Drepper * std/bastring.h (basic_string::copy): Mark copy function as const. Reported by Scott Schurr . Bring over from devo. From-SVN: r19684 --- libstdc++/ChangeLog | 9 +++++++++ libstdc++/std/bastring.cc | 2 +- libstdc++/std/bastring.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index 04744929e8d5..f3592ad33bbf 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,12 @@ +Tue Mar 24 10:13:07 1998 Jason Merrill + + * std/bastring.cc (basic_string::copy): Mark const here, too. + +1998-03-23 15:59 Ulrich Drepper + + * std/bastring.h (basic_string::copy): Mark copy function as const. + Reported by Scott Schurr . + Thu Mar 5 09:23:28 1998 Manfred Hollstein * configure.in: Make locating frag files failsafe even for the diff --git a/libstdc++/std/bastring.cc b/libstdc++/std/bastring.cc index 30a2382f90b3..fca6f29680ba 100644 --- a/libstdc++/std/bastring.cc +++ b/libstdc++/std/bastring.cc @@ -228,7 +228,7 @@ resize (size_type n, charT c) template basic_string ::size_type basic_string :: -copy (charT* s, size_type n, size_type pos) +copy (charT* s, size_type n, size_type pos) const { OUTOFRANGE (pos > length ()); diff --git a/libstdc++/std/bastring.h b/libstdc++/std/bastring.h index cbc6e4384c82..8b009a4ad8cb 100644 --- a/libstdc++/std/bastring.h +++ b/libstdc++/std/bastring.h @@ -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()); } -- 2.43.5