mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
12 lines
125 B
C++
12 lines
125 B
C++
|
|
struct test{
|
|
void f() & { }
|
|
void f() && { }
|
|
};
|
|
|
|
void someFunc(){
|
|
test t;
|
|
t.f(); // lvalue
|
|
test().f(); // rvalue
|
|
}
|