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

[expr.sizeof]/2: Is 'When applied to a reference' needed when we have [expr.type]/1 #2652

Closed
languagelawyer opened this issue Jan 24, 2019 · 0 comments
Assignees

Comments

@languagelawyer
Copy link
Contributor

saying

If an expression initially has the type “reference to T” ([dcl.ref], [dcl.init.ref]), the type is adjusted to T prior to any further analysis.

Suggested fix:
When applied to a reference or a reference type, the result is the size of the referenced type.

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