workaround to dereferencing a nullptr

release/4.3a0
acxz 2020-07-27 23:43:35 -04:00
parent e9c7e2cb4f
commit e0791f4e54
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ struct Record: public internal::CallRecordImplementor<Record, Cols> {
friend struct internal::CallRecordImplementor;
};
internal::JacobianMap & NJM= *static_cast<internal::JacobianMap *>(nullptr);
internal::JacobianMap* NJM_ptr = static_cast<internal::JacobianMap *>(nullptr);
internal::JacobianMap & NJM = *NJM_ptr;
/* ************************************************************************* */
typedef Eigen::Matrix<double, Eigen::Dynamic, Cols> DynRowMat;