I am getting error while creating object as shown below using unique_ptr Error: Error conversion from Account * to non-scalar type std::unique_ptr
std::unique_ptr <Account> acc_ptr = new Account(100);
If I use raw pointer as below, there is no error
Account *acc_ptr = new Account(100);
Why is it so?