Вот моя «наивная» попытка:
Код: Выделить всё
std::unique_ptr ptr;
ptr = std::make_unique( "INSERT INTO mytable VALUES();" );
Код: Выделить всё
1> c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\memory(2539): error C2440: 'initializing': cannot convert from 'const char [380]' to '_Ty'
1> with
1> [
1> _Ty=SQLWCHAR
1> ]
1> c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\memory(2539): note: There is no context in which this conversion is possible
TIA!!
Подробнее здесь: https://stackoverflow.com/questions/793 ... -unque-ptr