Fix operator= ambiguity on some versions of Clang.

- Earlier versions of Clang (up to at least v3.0) throw an ambiguous
  operator= error in this assignment.  Variations on this error have
  cropped up occassionally in some other projects (e.g. PCL).

Change-Id: I73a632c43528eb69840ce697c55d9afc5f3d8e59
This commit is contained in:
Alex Stewart
2013-10-04 10:58:18 +01:00
parent fa00ca919e
commit 468a23f211
@@ -203,7 +203,7 @@ class DynamicNumericDiffCostFunction : public CostFunction {
// 1. Store residuals for the forward part.
// 2. Subtract residuals for the backward (or 0) part.
// 3. Divide out the run.
parameter_jacobian.col(j) = residuals;
parameter_jacobian.col(j).matrix() = residuals;
double one_over_h = 1 / step_size(j);
if (method == CENTRAL) {