When compiling my codes, I got this message “error: An extended host device lambda must not be defined in a function that is defined within another function”. The host compiler is gcc 5.5.0 and the device compiler
is nvcc V8.0.61. I have already set the flags “-std=c++11” and “–expt-extended-lambda” for nvcc. And everything is OK when using gcc 6.4.0 + nvcc V9.0.176. But if I want to make my codes support nvcc 8.0, what can I do without much code refactoring?