diff liboctave/oct-shlib.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 72c96de7a403
line wrap: on
line diff
--- a/liboctave/oct-shlib.h	Sat Jan 22 03:18:31 2011 -0500
+++ b/liboctave/oct-shlib.h	Thu Jan 20 11:10:27 2011 +0100
@@ -28,6 +28,7 @@
 #include <map>
 
 #include "oct-time.h"
+#include "oct-refcount.h"
 
 class
 OCTAVE_API
@@ -85,7 +86,7 @@
 
   public:
 
-    int count;
+    octave_refcount<int> count;
 
   protected: