Skip to content

[basic.start,except] Harmonize references to std::terminate - #2187

Merged
zygoloid merged 1 commit into
cplusplus:masterfrom
jensmaurer:b23
Jul 2, 2018
Merged

zygoloid merged 1 commit into
cplusplus:masterfrom
jensmaurer:b23

Conversation

@jensmaurer

Copy link
Copy Markdown
Member

Fixes #2150.

Comment thread source/basic.tex Outdated
If the initialization of a non-local variable with static or thread storage duration
exits via
an exception, \tcode{std::terminate} is called\iref{except.terminate}.%
an exception, \tcode{std::terminate()} is called\iref{except.terminate}.%

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We have a mix of "std::terminate() is called" and "std::terminate is called" here, with some examples changing in one direction and some changing in the other direction. I think we have guidance that "the function std::terminate is called" should hot have parentheses, but these cases without a "the function" prefix are ambiguous between calling a function and "calling" (evaluating) a function call expression.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok, going for "the function std::terminate is called" globally.

@zygoloid
zygoloid merged commit 9db2f62 into cplusplus:master Jul 2, 2018
@jensmaurer
jensmaurer deleted the b23 branch July 3, 2018 08:03
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.

2 participants