Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoarau committed May 25, 2018
1 parent ff72994 commit 527e990
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions external/idyntree-0.8.1/src/core/src/SparseMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,14 @@ namespace iDynTree {
double SparseMatrix<ordering>::operator()(unsigned int, unsigned int) const
{
assert(false);
return 0;
}

template <iDynTree::MatrixStorageOrdering ordering>
double& SparseMatrix<ordering>::operator()(unsigned int, unsigned int)
{
assert(false);
return 0;
}

template <iDynTree::MatrixStorageOrdering ordering>
Expand Down Expand Up @@ -892,27 +894,27 @@ namespace iDynTree {
return &m_matrix == &((&it)->m_matrix) //check that we are pointing to the same matrix
&& m_index == it.m_index;
}

template <iDynTree::MatrixStorageOrdering ordering>
typename SparseMatrix<ordering>::ConstIterator::reference SparseMatrix<ordering>::ConstIterator::operator*()
{
return m_currentTriplet;
}

template <iDynTree::MatrixStorageOrdering ordering>
typename SparseMatrix<ordering>::ConstIterator::pointer SparseMatrix<ordering>::ConstIterator::operator->()
{
return &m_currentTriplet;
}

template <iDynTree::MatrixStorageOrdering ordering>

bool SparseMatrix<ordering>::ConstIterator::isValid() const
{
return m_index >= 0
&& true; //TODO: check if we are < than end or >= begin
}

}

// MARK: - Explicit instantiation of available templates
Expand Down

0 comments on commit 527e990

Please sign in to comment.