diff --git a/src/axom/spin/internal/linear_bvh/build_radix_tree.hpp b/src/axom/spin/internal/linear_bvh/build_radix_tree.hpp index 21336c6ec5..99fc62692d 100644 --- a/src/axom/spin/internal/linear_bvh/build_radix_tree.hpp +++ b/src/axom/spin/internal/linear_bvh/build_radix_tree.hpp @@ -264,7 +264,7 @@ void sort_mcodes(Array& mcodes, int32 size, const ArrayView iter) std::stable_sort(iter.begin(), iter.begin() + size, - [=](int32 i1, int32 i2) { return mcodes[i1] < mcodes[i2]; }); + [&](int32 i1, int32 i2) { return mcodes[i1] < mcodes[i2]; }); );