We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf0850 commit 2a8f456Copy full SHA for 2a8f456
tests/test.cpp
@@ -920,11 +920,11 @@ void NativeTypeTest() {
920
Native::Vector3D(20 * i + 0.1f, 20 * i + 0.2f, 20 * i + 0.3f));
921
}
922
923
- src_data.matrix = std::make_unique<Native::Matrix>(1, 2);
+ src_data.matrix = std::unique_ptr<Native::Matrix>(new Native::Matrix(1, 2));
924
src_data.matrix->values = {3, 4};
925
926
for (int i = 0; i < N; ++i) {
927
- src_data.matrices.push_back(std::make_unique<Native::Matrix>(1, i));
+ src_data.matrices.push_back(std::unique_ptr<Native::Matrix>(new Native::Matrix(1, i)));
928
std::fill(src_data.matrices[i]->values.begin(),
929
src_data.matrices[i]->values.end(), i + 0.5f);
930
0 commit comments