cmake/c++11-test-rvalue_references-N2118.cpp@baa35b4b67dc
cmake/c++11-test-rvalue_references-N2118.cpp
Fri, 23 Aug 2013 00:54:31 +0300
- author
- Santeri Piippo <crimsondusk64@gmail.com>
- date
- Fri, 23 Aug 2013 00:54:31 +0300
- changeset 476
- baa35b4b67dc
- parent 473
-
2a84149fe642
- permissions
- -rw-r--r--
fixed: front and back camera wouldn't render anything
int foo(int& lvalue)
{
return 123;
}
int foo(int&& rvalue)
{
return 321;
}
int main()
{
int i = 42;
return ((foo(i) == 123) && (foo(42) == 321)) ? 0 : 1;
}