| 16 | public: |
| 17 | template<class U> |
| 18 | FancyRefPtr(const FancyRefPtr<U>& s, T* p){ |
| 19 | obj = p; |
| 20 | refCount = s.getRefCount(); |
| 21 | |
| 22 | __sync_fetch_and_add(refCount, 1); |
| 23 | } |
| 24 | |
| 25 | FancyRefPtr(){ |
| 26 | refCount = nullptr; |
nothing calls this directly
no test coverage detected