You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
215 B

#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();
}