Merge pull request #27 from AnthonyCalandra/revert-26-master

Revert "Named rvalue references are treated as lvalue references"
This commit is contained in:
Anthony Calandra
2017-07-13 08:24:50 -04:00
committed by GitHub

View File

@@ -731,6 +731,8 @@ decltype(a) b = a; // `decltype(a)` is `int`
const int& c = a; // `c` is declared as type `const int&`
decltype(c) d = a; // `decltype(c)` is `const int&`
decltype(123) e = 123; // `decltype(123)` is `int`
int&& f = 1; // `f` is declared as type `int&&`
decltype(f) g = 1; // `decltype(f) is `int&&`
decltype((a)) h = g; // `decltype((a))` is int&
```
```c++