blob: 2d5d120460a0dcfcb0889fa71a3f914df7e7c0b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <string>
std::string foo()
{
return std::string{"abc"};
}
int main()
{
const std::string&& name1 = foo();
std::string&& name2 = foo();
const auto&& name3 = foo();
auto&& name4 = foo();
}
|