commit | 2fd39fcecb47eebce727081c9ffb8edf86c33669 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Thu Sep 01 16:05:06 2016 -0700 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Thu Sep 01 16:05:06 2016 -0700 |
tree | 29878e0b97fabf20184355a559e55488cd69b9ae | |
parent | 716f049a7b91a8f3a4632c367d9534d1d9190a81 [diff] |
FindWithDefault returns by value rather than reference. Returning by reference leads to lifetime issues with the default value which may go out of scope by the time it is used. Thanks to @Ardavel for reporting this, as this causes graph_test to fail on VS2015x64. https://github.com/ceres-solver/ceres-solver/issues/216 Change-Id: I596481219cfbf7622d49a6511ea29193b82c8ba3
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.
Ceres development happens on Gerrit, including both repository hosting and code reviews. The GitHub Repository is a continuously updated mirror which is primarily meant for issue tracking. Please see our Contributing to Ceres Guide for more details.
The upstream Gerrit repository is
https://ceres-solver.googlesource.com/ceres-solver