ext/nmatrix/storage/yale/iterators/row_stored_nd.h in nmatrix-0.0.9 vs ext/nmatrix/storage/yale/iterators/row_stored_nd.h in nmatrix-0.1.0.rc1
- old
+ new
@@ -7,12 +7,12 @@
// NMatrix was originally inspired by and derived from NArray, by
// Masahiro Tanaka: http://narray.rubyforge.org
//
// == Copyright Information
//
-// SciRuby is Copyright (c) 2010 - 2013, Ruby Science Foundation
-// NMatrix is Copyright (c) 2013, Ruby Science Foundation
+// SciRuby is Copyright (c) 2010 - 2014, Ruby Science Foundation
+// NMatrix is Copyright (c) 2012 - 2014, John Woods and the Ruby Science Foundation
//
// Please see LICENSE.txt for additional copyright notices.
//
// == Contributing
//
@@ -85,10 +85,11 @@
row_stored_nd_iterator_T<D,RefType,YaleRef,RowRef> const& operator=(row_stored_nd_iterator_T<D,RefType,YaleRef,RowRef> const& rhs) {
if (&r != &(rhs.r))
throw std::logic_error("can't assign iterator from another row iterator");
p_ = rhs.p_;
+ return *this;
}
virtual size_t p() const { return p_; }
virtual bool end() const {
@@ -162,6 +163,6 @@
} } // end of namespace nm::yale_storage
-#endif // YALE_ITERATORS_ROW_STORED_ND_H
\ No newline at end of file
+#endif // YALE_ITERATORS_ROW_STORED_ND_H