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

"the program shall behave as if there were a single definition" in [basic.def.odr]p6 #168

Closed
zygoloid opened this issue Aug 30, 2013 · 0 comments

Comments

@zygoloid
Copy link
Member

[basic.def.odr]p6 says:

"If the definitions of D satisfy all these requirements, then the program shall behave as if there were a single definition of D."

However, this is obviously a constraint on the implementation, not on the program, so the use of "shall" here is incorrect. This should instead say:

"[...] then the program behaves as if there were a single definition [...]"

or

"[...] then the implementation shall behave as if there were a single definition [...]"

While I think the intent is clear here, I'm not entirely sure this is an editorial change; if not, let me know and I'll take it to CWG.

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

No branches or pull requests

1 participant