Skip to content

Fix printing streampos to ostream - #2514

Closed
Christopher Yeleighton (yecril71pl) wants to merge 1 commit into
MicrosoftDocs:masterfrom
yecril71pl:patch-2
Closed

Christopher Yeleighton (yecril71pl) wants to merge 1 commit into
MicrosoftDocs:masterfrom
yecril71pl:patch-2

Conversation

@yecril71pl

Copy link
Copy Markdown
Contributor

The expression cout << y works as described only if no shift operator of streampos into ostream is defined. That operator may be defined by user code and the result may be different.

The expression (cout << y) works as described only if no shift operator of streampos into ostream is defined.  That operator may be defined by user code and the result may be different.
@PRMerger16

Copy link
Copy Markdown
Contributor

Christopher Yeleighton (@yecril71pl) : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@TylerMSFT

Copy link
Copy Markdown
Collaborator

Hi Chris,
That's true, but I think it's apparent. And it complicates the mainline case. I'd rather not make this change.

@yecril71pl

Copy link
Copy Markdown
Contributor Author

Hi Chris,
That's true, but I think it's apparent. And it complicates the mainline case. I'd rather not make this change.

For me the mainline case is that being able to say cout << y means it is also possible to say cin >> y, and if that is not possible, it is worth to indicate this fact somehow.

Comment thread docs/standard-library/ios-typedefs.md
@TylerMSFT

Tyler Whitney (TylerMSFT) commented Nov 6, 2020

Copy link
Copy Markdown
Collaborator

I've made this change to the topic and it will be live by Monday.

@TylerMSFT

Copy link
Copy Markdown
Collaborator

Closing because I made the updates from Casey in another branch.

@yecril71pl

Copy link
Copy Markdown
Contributor Author

I've made this change to the topic and it will be live by Monday.

It is Monday and it is not live.

opbld15 pushed a commit that referenced this pull request Nov 9, 2020
opbld15 pushed a commit that referenced this pull request Nov 9, 2020
@TylerMSFT

Copy link
Copy Markdown
Collaborator

Christopher Yeleighton (@yecril71pl) - I checked and it's live. Perhaps try refreshing the page in your browser.

@colin-home

Copy link
Copy Markdown
Contributor

Christopher Yeleighton (@yecril71pl) Publishing usually happens between 10 and 11 AM Redmond time (so, usually by 1900 UTC) on weekdays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants