Skip to content

Commit 2a8f456

Browse files
authored
Replace usage of make_unique with unique_ptr for cpp11 (#8763)
1 parent cbf0850 commit 2a8f456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,11 @@ void NativeTypeTest() {
920920
Native::Vector3D(20 * i + 0.1f, 20 * i + 0.2f, 20 * i + 0.3f));
921921
}
922922

923-
src_data.matrix = std::make_unique<Native::Matrix>(1, 2);
923+
src_data.matrix = std::unique_ptr<Native::Matrix>(new Native::Matrix(1, 2));
924924
src_data.matrix->values = {3, 4};
925925

926926
for (int i = 0; i < N; ++i) {
927-
src_data.matrices.push_back(std::make_unique<Native::Matrix>(1, i));
927+
src_data.matrices.push_back(std::unique_ptr<Native::Matrix>(new Native::Matrix(1, i)));
928928
std::fill(src_data.matrices[i]->values.begin(),
929929
src_data.matrices[i]->values.end(), i + 0.5f);
930930
}

0 commit comments

Comments
 (0)