90dfa43ff1
The code compiled because shared_ptr's constructor actually accepts unique_ptr.
The code compiled because shared_ptr's constructor actually accepts unique_ptr.