mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
- unique_ptr is more flexible and generally recommended for factory methods. It gets automatically converted to shared_ptr if necessary. Returning shared_ptr, on the other hand, forces the caller to use shared_ptr because a conversion to unique_ptr is not possible.