[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fstream::rdbuf() call vs. ios::rdbuf()
From: |
Cyril Zorin |
Subject: |
fstream::rdbuf() call vs. ios::rdbuf() |
Date: |
18 Nov 2005 21:29:40 -0800 |
User-agent: |
G2/0.2 |
Hello,
When I do something like this
my_fstream.ios::rdbuf(some_ptr);
to change the streambuf that the fstream uses, this actually changes
basic_ios' streambuf and does not alter fstream's streambuf.
Is this the intended behaviour? libstdc++ has a comment that due to a
design error that LWG doesn't want to correct, fstream::rdbuf() hides
both overloads of ios::rdbuf() -- but is this hiding just a "synthetic"
thing, or does fstream completely ignore basic_ios' streambuf?
Thanks,
Cyril.
- fstream::rdbuf() call vs. ios::rdbuf(),
Cyril Zorin <=