You are likely passing by value. Pass by reference or by pointer and you should be fine.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/80c59aea-9fe1-4704-9095-5daac133ce0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.