Skip to content

Commit

Permalink
fix: ceres jet compilation on gcc #2
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Oct 31, 2023
1 parent 3125f6e commit 2c23774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/sophus/linalg/homogeneous.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ auto proj(Eigen::MatrixBase<TPoint> const& p)
/// point: (z*a, z*b, z). Z defaults to 1.
template <class TPoint>
auto unproj(
Eigen::MatrixBase<TPoint> const& p, const typename TPoint::Scalar& z = 1.0)
Eigen::MatrixBase<TPoint> const& p,
const typename TPoint::Scalar& z = typename TPoint::Scalar(1.0))
-> Eigen::Vector<typename TPoint::Scalar, TPoint::RowsAtCompileTime + 1> {
using Scalar = typename TPoint::Scalar;
static_assert(TPoint::ColsAtCompileTime == 1, "p must be a column-vector");
Expand Down

0 comments on commit 2c23774

Please sign in to comment.