Address of out-of-scope variable?

Is this legit or are we using the address of Result after it goes out of scope?

Would this work?

for(auto& Result : Results)

Result would be out of scope at the end of the for loop but you are using Correct Result which is fine here.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms