Mercurial > octave-nkf
diff src/ov-base.h @ 12125:a21a3875ca83
implement a common class for reference counts
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 11:10:27 +0100 |
parents | 12df7854fa7c |
children | d08901c05c1b |
line wrap: on
line diff
--- a/src/ov-base.h Sat Jan 22 03:18:31 2011 -0500 +++ b/src/ov-base.h Thu Jan 20 11:10:27 2011 +0100 @@ -776,7 +776,7 @@ // NOTE: the declaration is octave_idx_type because with 64-bit indexing, // it is well possible to have more than MAX_INT copies of a single value // (think of an empty cell array with >2G elements). - octave_idx_type count; + octave_refcount<octave_idx_type> count; private: