[mlpack-git] master: Fix out-of-order initialization warnings. (56a3504)

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


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

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

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

commit 56a350480c2e94d5fce625e32b7f6c4cbd21f9ef
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Aug 1 16:18:33 2014 +0000

    Fix out-of-order initialization warnings.


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

56a350480c2e94d5fce625e32b7f6c4cbd21f9ef
 src/mlpack/core/arma_extend/Mat_extra_meat.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/core/arma_extend/Mat_extra_meat.hpp b/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
index 89a15b6..0161d05 100644
--- a/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
+++ b/src/mlpack/core/arma_extend/Mat_extra_meat.hpp
@@ -5,7 +5,7 @@
 template<typename eT>
 inline
 Mat<eT>::const_row_col_iterator::const_row_col_iterator()
-    : M(NULL), current_pos(NULL), internal_row(0), internal_col(0)
+    : M(NULL), current_pos(NULL), internal_col(0), internal_row(0)
 {
   // Technically this iterator is invalid (it may not point to a real element)
 }
@@ -38,7 +38,7 @@ Mat<eT>::const_row_col_iterator::const_row_col_iterator(const row_iterator& it)
 template<typename eT>
 inline
 Mat<eT>::const_row_col_iterator::const_row_col_iterator(const Mat<eT>& in_M, const uword row, const uword col)
-    : M(&in_M), current_pos(&in_M(row,col)), internal_row(row), internal_col(col)
+    : M(&in_M), current_pos(&in_M(row,col)), internal_col(col), internal_row(row)
 {
   // Nothing to do.
 }
@@ -190,7 +190,7 @@ Mat<eT>::const_row_col_iterator::operator!=(const row_iterator& rhs) const
 template<typename eT>
 inline
 Mat<eT>::row_col_iterator::row_col_iterator()
-    : M(NULL), current_pos(NULL), internal_row(0), internal_col(0)
+    : M(NULL), current_pos(NULL), internal_col(0), internal_row(0)
 {
   // Technically this iterator is invalid (it may not point to a real element)
 }
@@ -207,7 +207,7 @@ Mat<eT>::row_col_iterator::row_col_iterator(const row_iterator& it)
 template<typename eT>
 inline
 Mat<eT>::row_col_iterator::row_col_iterator(Mat<eT>& in_M, const uword row, const uword col)
-    : M(&in_M), current_pos(&in_M(row,col)), internal_row(row), internal_col(col)
+    : M(&in_M), current_pos(&in_M(row,col)), internal_col(col), internal_row(row)
 {
   // Nothing to do.
 }



More information about the mlpack-git mailing list