• lysdexic@programming.devOPM
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    You’d be missing the whole point too if you think that the pointer is the root cause. The problem is that the class is not designed to be copy-able, let alone moveable. Your suggestion to use a unique_ptr will also blow up in your face the moment you try to copy an instance.