appleseedhq / appleseed

A modern open source rendering engine for animation and visual effects
https://appleseedhq.net/
MIT License
2.19k stars 329 forks source link

Replace some usages of each<> and const_each<> #2869

Closed h44rd closed 4 years ago

h44rd commented 4 years ago

Hi,

This PR aims to solve issue #2704.

Two instances of foundation::each in the file src/appleseed/renderer/kernel/intersection/treerepository.h and one instance of foundation::each_const in src/appleseed/renderer/utility/paramarray.h has been replaced with a range based for loop.

I have run tests under 'Debug' and all of them have passed.

Please review and let me know if there are any further changes required.

Thanks, Haard

dictoon commented 4 years ago

Turns out the const were necessary, interestingly... Woops!