CMake/Source/Checks/cm_cxx_make_unique.cxx

7 lines
99 B
C++

#include <memory>
int main()
{
std::unique_ptr<int> u = std::make_unique<int>(0);
return *u;
}