Replacing ScopedPointer with std::unique_ptr

Maybe because std::unique_ptr does not have a conversion operator to the raw pointer? You need to get the raw pointer with the .get() method.

1 Like