AIX I/O failures

Gabriel Dos Reis gdr@codesourcery.com
Thu Jan 25 13:46:00 GMT 2001


Mark Mitchell <mark@codesourcery.com> writes:

| >>>>> "Phil" == Phil Edwards <pedwards@disaster.jaj.com> writes:
| 
|     >> This is really ugly because, on one hand cin is seen with the
|     >> right type and on the other hand as array[] at the code level
|     >> -- I wouldn't to debug such a mess.
| 
|     Phil> Indeed.  Calling this "opaque" seems too kind.  :-) We can't
| 
| Thanks. :-)
| 
|     Phil> just handwave around the issue of "need to keep the types
|     Phil> separate" -- I believe declaring cin as a char array
|     Phil> *anywhere* is going to get us into trouble.
| 
| Why?
| 
| This is actually a standard technique, endorsed by ISO.  That's what
| placement new is for, after all.

Placement new is a different matter -- it keeps the type as is.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


More information about the Libstdc++ mailing list