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

Use \tcode for return/if/switch statement. #1819

Merged
merged 1 commit into from Feb 12, 2018
Merged

Conversation

jensmaurer
Copy link
Member

Fixes #1305.

@jensmaurer
Copy link
Member Author

Rebased.

@@ -2103,7 +2103,7 @@
\grammarterm{requires-clause}{s},
or
\grammarterm{noexcept-specifier}{s}.
For the purpose of instantiation, the substatements of a constexpr if
For the purpose of instantiation, the substatements of a constexpr \tcode{if}
Copy link
Member

Choose a reason for hiding this comment

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

This change is incorrect; we define the (non-teletype) term "constexpr if statement" in [stmt.if]p2.

Copy link
Member Author

Choose a reason for hiding this comment

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

Reverted (changes to templates.tex are gone; they all dealt with constexpr if statement).

(Similar to "contextually converted to bool", it might be worthwhile to consider changing "constexpr if statement" to teletype, but italics teletype is ugly, and we never finished discussing that aspect. So ignore for now.)

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

2 participants