Fixing build error when using post-increment operator.
Merge pull request #2880 from GravityJack:SparseMatIterator-build-fix