ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.14 by root, Thu Sep 14 18:13:02 2006 UTC vs.
Revision 1.15 by root, Sat Sep 16 13:11:20 2006 UTC

110struct refcounted 110struct refcounted
111{ 111{
112 mutable int refcnt; 112 mutable int refcnt;
113 refcounted () : refcnt (0) { } 113 refcounted () : refcnt (0) { }
114 void refcnt_inc () { ++refcnt; } 114 void refcnt_inc () { ++refcnt; }
115 void refcnt_dec () { --refcnt; 115 void refcnt_dec () { --refcnt; }
116 if (refcnt < 0)abort();}//D
117}; 116};
118 117
119template<class T> 118template<class T>
120struct refptr 119struct refptr
121{ 120{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines