Skip to content
Snippets Groups Projects
Commit dc475917 authored by jcarpent's avatar jcarpent
Browse files

[Constraint] Make constructors explicit

parent b4cadf49
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ namespace se3
public:
template<typename D>
ConstraintTpl(const Eigen::MatrixBase<D> & _S) : S(_S)
explicit ConstraintTpl(const Eigen::MatrixBase<D> & _S) : S(_S)
{
// There is currently a bug in Eigen/Core/util/StaticAssert.h in the use of the full namespace path
// TODO
......@@ -148,7 +148,7 @@ namespace se3
}
// It is only valid for dynamics size
ConstraintTpl(const int dim) : S(6,dim)
explicit ConstraintTpl(const int dim) : S(6,dim)
{
EIGEN_STATIC_ASSERT(_Dim==Eigen::Dynamic,YOU_CALLED_A_FIXED_SIZE_METHOD_ON_A_DYNAMIC_SIZE_MATRIX_OR_VECTOR)
#ifndef NDEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment