Skip to content
  • Albert Astals Cid's avatar
    Fix calling a function on a null pointer · 36bc1703
    Albert Astals Cid authored
    It wasn't crashing but it's defenitely undefined behaviour.
    
    Now instead of calling copy that calls the constructor we call the
    constructor directly, which deals fine with a null "other" to be created
    from
    
    Also some const
    36bc1703