c++ - Is there an rvalue that I can directly take an address of? -
i can take address of rvalue binding in reference (which itself, understand, can referred lvalue).
is there way rvalue can directly take address of (i.e. &(<rvalue>)
valid expression, without overriding operator&()
)?
or maybe such @ least possible through 'binding' rvalue? (this not seems case can 'bind' references lvalues, see above. maybe i'm missing similar concept here.)
the more general question i'm trying answer whether following true: rvalues strictly correspond set of expressions 1 can directly take address of, except lvalue bitfields , maybe other such 'special' kinds of lvalues.
a nested-name-specifier denotes class, optionally followed keyword
template
([temp.names]), , followed name of member of either class ([class.mem]) or 1 of base classes, qualified-id; [class.qual] describes name lookup class members appear in qualified-ids. result member. type of result type of member. the result lvalue if member static member function or data member , prvalue otherwise.
that is, creating pointer-to-member non-static member function applying &
operator prvalue.
Comments
Post a Comment