Skip to content
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

[diff.cpp11] Supply a compatibility note for CWG1560 #530

Merged
merged 1 commit into from May 30, 2016

Conversation

k-satoda
Copy link
Contributor

CWG1560: Gratuitous lvalue-to-rvalue conversion in
conditional-expression with throw-expression operand
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1560
The change had been made between C++11 and C++14.

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 19, 2015

Can you please squash and rebase the commits?

@k-satoda
Copy link
Contributor Author

OK. Squeshed and rebased.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jan 5, 2016

@zygoloid: Could you please take a look?

@cubbimew
Copy link
Contributor

cubbimew commented Jan 8, 2016

As an April 2013 DR, doesn't it technically amend C++11?

@k-satoda
Copy link
Contributor Author

k-satoda commented Jan 9, 2016

@cubbimew Yes it amends C++11. But the way is not perfectly compatible.
That's why I made this PR.

@@ -1380,6 +1380,40 @@
Note that this might occur when the lvalue has a type given by a template
parameter.

\rSec2[diff.cpp11.expr]{Clause \ref{expr}: expressions}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this header; it is a duplicate of the one on line 1372.

@k-satoda
Copy link
Contributor Author

k-satoda commented Mar 8, 2016

Thank you for the review.

I made the fixes, and squashed and rebased again.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 20, 2016

Can you please rebase?

CWG1560: Gratuitous lvalue-to-rvalue conversion in
  conditional-expression with throw-expression operand
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1560
The change had been made between C++11 and C++14.
@k-satoda
Copy link
Contributor Author

OK. Rebased.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 21, 2016

@zygoloid: PTAL

@zygoloid zygoloid merged commit e8acf77 into cplusplus:master May 30, 2016
FrankHB pushed a commit to FrankHB/draft that referenced this pull request Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants