2. Make the front-pointers be Rc's or Arc's, then use the downgrade() method to construct the back-pointers.
3. Array-based ring buffer instead, perhaps?
4. Like any refactoring, the compiler errors guide you to the places that you haven't yet changed.
2. Make the front-pointers be Rc's or Arc's, then use the downgrade() method to construct the back-pointers.
3. Array-based ring buffer instead, perhaps?
4. Like any refactoring, the compiler errors guide you to the places that you haven't yet changed.