2 ms·
Between `auto` and `decltype(auto)` it mostly does what I want, although the 2nd syntax is frightful. The main case it doesn't handle is for (auto i = 0; i
by tlb 4y ago
Between `auto` and `decltype(auto)` it mostly does what I want, although the 2nd syntax is frightful.
The main case it doesn't handle is
for (auto i = 0; i < foo.size(); i++)
where obviously I want i to match the return type of foo.size(), so a size_t rather than an int.