Consider the following example:
class A { int x; };
Now what is A::x?
- It cannot be an lvalue because it does not refer to a storage Location.
- It cannot be a type, because the type would be
decltype(A::x).
Consider the following example:
class A { int x; };
Now what is A::x?
decltype(A::x).