This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)
- To: rittle at labs dot mot dot com
- Subject: Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)
- From: Carlo Wood <carlo at alinoe dot com>
- Date: Sat, 30 Jun 2001 17:52:34 +0200
- Cc: libstdc++ at gcc dot gnu dot org, Theodore dot Papadopoulo at sophia dot inria dot fr
- References: <200106300808.f5U88r507479@latour.rsch.comm.mot.com>
On Sat, Jun 30, 2001 at 03:08:53AM -0500, Loren James Rittle wrote:
> Comments? OK to install?
> Index: src/ios.cc
> ! new (&buf_cin) filebuf(stdin, ios_base::in, __in_bufsize);
etc
Ack! When working on this, can you PLEASE (please please)
read http://gcc.gnu.org/ml/libstdc++/2001-05/msg00189.html
and a correction in http://gcc.gnu.org/ml/libstdc++/2001-05/msg00190.html
and hopefully fix the problem I mention there?
Basically it comes down to that:
----------
#include <iostream>
void* operator new(size_t size)
{
static std::ios_base::Init dummy;
std::cout << "Calling operator new\n";
return malloc(size);
}
int main(void)
{
return 0;
}
----------
doesn't work, while it should according to the standard.
Thanks!
--
Carlo Wood <carlo@alinoe.com>