[solved] C++11 functor not changing variable declared outside
i try to assign a value to a variable inside a functor.
Inside the functor the value seems ok, but outside the value is not changed, any ideas?
My code looks like this:
double lat = 0.0;
double lon = 0.0;
Thank you! That was excactly the problem
I made the variables (lat and lon) member of my class and now it works perfectly.