… | … | ||
---|---|---|---|
123 | }; | 123 | }; |
124 | 124 | ||
125 | struct refcounted | 125 | struct refcounted |
126 | { | 126 | { |
127 | refcounted () : refcnt (0) { } | 127 | refcounted () : refcnt (0) { } |
128 | // virtual ~refcounted (); | 128 | virtual ~refcounted (); |
129 | void refcnt_inc () { ++refcnt; } | 129 | void refcnt_inc () { ++refcnt; } |
130 | void refcnt_dec () { --refcnt; } | 130 | void refcnt_dec () { --refcnt; } |
131 | bool dead () { return refcnt == 0; } | 131 | bool dead () { return refcnt == 0; } |
132 | mutable int refcnt; | 132 | mutable int refcnt; |
133 | #if 0 | 133 | #if 0 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |