On Tuesday, 15 January 2013 at 08:29:59 UTC, monarch_dodra wrote:
Just because there is something better today doesn't mean they
were a mistake.
I'm not sure if they /were/ but they certainly /are/...
no?
Okay, how many of these streambuf methods are you familiar with?
For me that's probably between 0-2.
Now do you /really/ expect to be able to implement your own
stream in a reasonable amount of time with a streambuf interface
like this? That's what's wrong with streams in C++.
eback
egptr
epptr
gbump
getloc
gptr
imbue
in_avail
overflow
pbackfail
pbase
pbump
pptr
pubimbue
pubseekoff
pubseekpos
pubsetbuf
pubsync
sbumpc
seekoff
seekpos
setbuf
setg
setp
sgetc
sgetn
showmanyc
snextc
sputbackc
sputc
sputn
stossc
sungetc
sync
uflow
underflow
xsgetn
xsputn