diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-11-05 13:54:26 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-11-05 13:54:26 +0100 |
commit | 9ceaa8e445524e9f63720fa5015fa06f6dbdcb0e (patch) | |
tree | cb1d0e9dcc2c5d0e8cd2900298648852ea4f0960 /unsupported/Eigen/src/AutoDiff | |
parent | ae87f094eb86ec56f110ff1f317aa57f765d33e7 (diff) |
bug #1063: nest AutoDiffScalar by value to avoid dead references
Diffstat (limited to 'unsupported/Eigen/src/AutoDiff')
-rw-r--r-- | unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h index bc641aef4..8b58b512b 100644 --- a/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +++ b/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h @@ -629,7 +629,7 @@ template<typename DerType> struct NumTraits<AutoDiffScalar<DerType> > typedef AutoDiffScalar<Matrix<typename NumTraits<typename DerType::Scalar>::Real,DerType::RowsAtCompileTime,DerType::ColsAtCompileTime, DerType::Options, DerType::MaxRowsAtCompileTime, DerType::MaxColsAtCompileTime> > Real; typedef AutoDiffScalar<DerType> NonInteger; - typedef AutoDiffScalar<DerType>& Nested; + typedef AutoDiffScalar<DerType> Nested; enum{ RequireInitialization = 1 }; |