All Questions
1 question
1
vote
0
answers
288
views
rvalue and lvalue of std::string
i ran the code as shown and i am confused as to why a+b is a rvalue. From what i know, rvalue should only have a data or address and in such a case std::string should be a lvalue isn't it?
void foo(...