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

is_complete is incorrect for reference types #125

Open
mattcalabrese opened this issue Jun 13, 2019 · 0 comments
Open

is_complete is incorrect for reference types #125

mattcalabrese opened this issue Jun 13, 2019 · 0 comments

Comments

@mattcalabrese
Copy link

is_complete<T&>::value is currently defined to be the value of is_complete<T>::value. This is incorrect. According to the standard, all lvalue reference types and rvalue reference types are complete types.

In [basic.types]:

A class that has been declared but not defined, an enumeration type in certain contexts (9.6), or an array of unknown bound or of incomplete element type, is an incompletely-defined object type. Incompletely-defined object types and cv void are incomplete types (6.7.1). Objects shall not be defined to have an incomplete type.

References do not fall under any of the above cases and are therefore complete.

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