std::unique_ptr<int> ptr;
ptr = new int[3]; // error
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'int *' (or there is no acceptable conversion)
Почему он не скомпилирован? Как я могу прикрепить собственный указатель на существующий экземпляр unique_ptr?