diff liboctave/idx-vector.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 d13b6086aea9
line wrap: on
line diff
--- a/liboctave/idx-vector.h	Sat Jan 22 03:18:31 2011 -0500
+++ b/liboctave/idx-vector.h	Thu Jan 20 11:10:27 2011 +0100
@@ -34,6 +34,7 @@
 #include "oct-inttypes.h"
 #include "oct-alloc.h"
 #include "oct-mem.h"
+#include "oct-refcount.h"
 
 template<class T> class Array;
 template<class T> class Sparse;
@@ -102,7 +103,7 @@
 
     virtual Array<octave_idx_type> as_array (void);
 
-    int count;
+    octave_refcount<int> count;
 
     bool err;