… | … | ||
---|---|---|---|
345 | MTH void refcnt_dec () const { --refcnt; } | 345 | MTH void refcnt_dec () const { --refcnt; } |
346 | 346 | ||
347 | refcnt_base () : refcnt (0) { } | 347 | refcnt_base () : refcnt (0) { } |
348 | }; | 348 | }; |
349 | 349 | ||
350 | // to avoid branches with more advanced compilers | ||
350 | extern refcnt_base::refcnt_t refcnt_dummy; | 351 | extern refcnt_base::refcnt_t refcnt_dummy; |
351 | 352 | ||
352 | template<class T> | 353 | template<class T> |
353 | struct refptr | 354 | struct refptr |
354 | { | 355 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |