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]
Other format: [Raw text]

Re: [RFC] Large file iostreams


On Thu, Oct 16, 2003 at 12:27:17PM -0500, Benjamin Kosnik wrote:
> 
> >> >The standard requires in several places that streamoff must be a
> >> >typedef, so it is defined as
> >> >  typedef class __streamoff streamoff;
> >> 
> >> Bummer, this.
> >
> >Yes, it doesn't seem to serve any real purpose.
> 
> ..and there doesn't seem to be a way to test that streamoff is not a
> typedef, and instead a type via class defined in std. Why should we
> bother with the __streamoff bits when it can be class streamoff? 

I believe that 

  typedef struct streamoff streamoff;

is legal C++.  

(Apologies to everybody for being out of touch.)

Nathan Myers
ncm@cantrip.org


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