I'm trying the fold expression with clang 3.6 '--std=c++1z', but something I don't quite get. The function that I'm testing is:
auto minus = [](auto... args) { return (args - ...); };
...
std::cout << minus(10, 3, 2) << std::endl;
according to n4191, I'm expecting it expands as a left fold to
(10 - 3) - 2
which gives result 5, however, the result is 9, which seems to be a right fold expansion, i.e.
10 - (3 - 2)
Am I missing anything or mis-understand n4191? Thanks