4 ms·
Seriously declreftype would have been a much clearer way to signal intent here rather than making parenthesis significant.
by thwest 13y ago
Seriously declreftype would have been a much clearer way to signal intent here rather than making parenthesis significant.
- pbsd 13y agoYeah, this special case always weirded me out, it's hard to see a justifiable use case. In regular usage you'd use auto& instead to achieve the same effect. C++14's decltype(auto) confuses things even further: http://coliru.stacked-crooked.com/a/f7d8195efc4708f3 http://coliru.stacked-crooked.com/a/f7d8195efc4708f3