This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH for libstdc++/2211 (some discussion held on gcc-bugs)


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]