I wrote the following code:
node *first = nullptr; node *last = nullptr; linked_list &operator=(const linked_list &l_list) {