[mlpack-git] master: Return *this for operator--(). (48e5271)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:57:30 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 48e527137517219c3bc505ec8dc51f6221bef93b
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Aug 11 19:47:02 2014 +0000

    Return *this for operator--().


>---------------------------------------------------------------

48e527137517219c3bc505ec8dc51f6221bef93b
 src/mlpack/core/arma_extend/Mat_extra_meat.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mlpack/core/arma_extend/Mat_extra_meat.hpp b/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
index 0bf1f6c..85585af 100644
--- a/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
+++ b/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
@@ -99,6 +99,8 @@ Mat<eT>::const_row_col_iterator::operator--()
     internal_col--;
     internal_row = M->n_rows - 1;
     }
+
+  return *this;
   }
 
 
@@ -305,6 +307,8 @@ Mat<eT>::row_col_iterator::operator--()
     internal_col--;
     internal_row = M->n_rows - 1;
     }
+
+  return *this;
   }
 
 



More information about the mlpack-git mailing list