Closed dsharlet closed 4 years ago
It looks like this breaks on the travis compiler (clang 7) but works on mine (clang 11). I'll have to try to make travis use a newer compiler before we can merge this, but I think it's a useful test to have.
Never mind that, clang 7 works fine, I just missed an actual copy!
FYI the changes in array.h weren't due to a new test failure, just wanted to be consistent that all callbacks are moved rather than captured by reference.
And thanks for the review!
Verified this works by making part of the for_each_index implementation take the function by value, the build broke.