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: AIX I/O failures


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

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