Don't use make_unique to be runnable in C++11

This commit is contained in:
Philippe Canal 2019-10-05 07:49:26 -05:00 committed by SFT
parent 8339e5498e
commit 4a92ac82a9

View File

@ -24,7 +24,7 @@ std::shared_ptr<int> i_sptr
std::weak_ptr<int> i_wptr
//CHECK: (std::weak_ptr<int> &) std::weak_ptr -> nullptr
i_uptr = std::make_unique<int>(3)
i_uptr = std::unique_ptr<int>(new int (3))
//CHECK: (std::unique_ptr &) std::unique_ptr -> 0x{{[0-9a-f]+}}
i_uptr