Fixing build error when using post-increment operator.
authorMarc Rollins <mrollins@gravityjack.com>
Thu, 19 Jun 2014 21:14:10 +0000 (14:14 -0700)
committerMarc Rollins <mrollins@gravityjack.com>
Thu, 19 Jun 2014 21:14:10 +0000 (14:14 -0700)
modules/core/include/opencv2/core/mat.hpp

index 45c2590..8a3167a 100644 (file)
@@ -2564,7 +2564,7 @@ SparseMatConstIterator_<_Tp>::operator ++()
 template<typename _Tp> inline SparseMatConstIterator_<_Tp>
 SparseMatConstIterator_<_Tp>::operator ++(int)
 {
-    SparseMatConstIterator it = *this;
+    SparseMatConstIterator_<_Tp> it = *this;
     SparseMatConstIterator::operator ++();
     return it;
 }
@@ -2608,7 +2608,7 @@ SparseMatIterator_<_Tp>::operator ++()
 template<typename _Tp> inline SparseMatIterator_<_Tp>
 SparseMatIterator_<_Tp>::operator ++(int)
 {
-    SparseMatIterator it = *this;
+    SparseMatIterator_<_Tp> it = *this;
     SparseMatConstIterator::operator ++();
     return it;
 }