-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<iomanip>
: consider removing operator>>
for istream >> setfill(c)
#3724
Comments
<iomanip>
: consider removing istream >> setfill(c)
<iomanip>
: consider removing operator>>
for istream >> setfill(c)
Thanks. I agree. I noticed that LLVM libc++ doesn't have the operator. But GCC libstdc++ has the operator. https://gcc.godbolt.org/z/a6xd65xnY Will you report this bug to GCC developers? Or should I do that? |
@fsb4000 I'm not famaliar with GCC, you may do the report. |
Sure. I created: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109922 |
It seems also better to define separate classes as return type for
|
According to the standard(this version),
std::setfill
is only for ostreams. Therefore,istream >> setfill(c)
has no well-defined meaning and can lead to confusion.The following piece of code should get removed.
STL/stl/inc/iomanip
Lines 28 to 35 in a621095
The text was updated successfully, but these errors were encountered: