stdio synching and startup code (was Re: segfaults after loading shared libstdc++)
Phil Edwards
pedwards@disaster.jaj.com
Wed Jan 10 04:17:00 GMT 2001
On Wed, Jan 10, 2001 at 12:48:20PM +0100, Gabriel Dos Reis wrote:
> Phil Edwards <pedwards@disaster.jaj.com> writes:
> | On Wed, Jan 10, 2001 at 12:54:16AM -0800, Benjamin Kosnik wrote:
> |
> | Yeah, I'd just finished looking at those. I must say, code like
> |
> | new (&cin) istream(_M_cin);
> |
> | just looks *freaky* weird. :-) Placement new over an I/O object...!
>
> You're right.
I'm embarrassed to say that it took me ten minutes to convince myself that
this was, in fact, correct code. :-) It's the first non-trivial use of
placement new I can recall seeing in A Real Program.
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.
More information about the Libstdc++
mailing list