Pass data to modal reprojection cost functor by reference

Seems it solves alignment error reported by 32bit MSVC.
This commit is contained in:
2013-03-01 08:20:13 +00:00
parent 2de9ce7940
commit a2027237ed

View File

@@ -56,7 +56,7 @@ void ModalSolverLogProress(ProgressUpdateCallback *update_callback,
}
struct ModalReprojectionError {
ModalReprojectionError(Vec2 marker, Vec3 bundle)
ModalReprojectionError(Vec2 &marker, Vec3 &bundle)
: marker(marker), bundle(bundle) { }
template <typename T>