| 116 | using element_type = T; |
| 117 | using element_type_ptr = T *; |
| 118 | smart_ptr ( smart_ptr_jit * p ) { |
| 119 | init((T *)p); |
| 120 | } |
| 121 | explicit operator smart_ptr_jit * () { |
| 122 | addRef(); // this is only during jit wrapping. we cast to this. old one gets deleted. we need to add ref. |
| 123 | return (smart_ptr_jit *)ptr; |