14 lines
130 B
C++
14 lines
130 B
C++
|
|
struct test
|
|
{
|
|
void f() & {}
|
|
void f() && {}
|
|
};
|
|
|
|
void someFunc()
|
|
{
|
|
test t;
|
|
t.f(); // lvalue
|
|
test().f(); // rvalue
|
|
}
|