bastring.cc (basic_string::Rep::operator delete): Don't claim to return from deallocate, since this is a void method.

* std/bastring.cc (basic_string::Rep::operator delete): Don't claim
	to return from deallocate, since this is a void method.

From-SVN: r17297
This commit is contained in:
Brendan Kehoe 1998-01-05 18:35:07 +00:00 committed by Brendan Kehoe
parent 1c72c7f64f
commit b450b6999c
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1998-01-05 Brendan Kehoe <brendan@lisa.cygnus.com>
* std/bastring.cc (basic_string::Rep::operator delete): Don't claim
to return from deallocate, since this is a void method.
Sat Jan 3 12:15:41 1998 Franz Sirl <franz.sirl-kernel@lauterbach.com>
* configure.in: Finalize support for {alpha|powerpc}*-*-linux-gnulibc1

View File

@ -40,9 +40,9 @@ template <class charT, class traits, class Allocator>
inline void basic_string <charT, traits, Allocator>::Rep::
operator delete (void * ptr)
{
return Allocator::deallocate(ptr, sizeof(Rep) +
reinterpret_cast<Rep *>(ptr)->res *
sizeof (charT));
Allocator::deallocate(ptr, sizeof(Rep) +
reinterpret_cast<Rep *>(ptr)->res *
sizeof (charT));
}
template <class charT, class traits, class Allocator>