Skip to content

Commit 7884c11

Browse files
committed
Use noalias in assignment
1 parent 2caed29 commit 7884c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_xchunk_store_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ namespace xt
145145
auto a2 = chunked_file_array<double, xio_disk_handler<xio_binary_config>>(shape, chunk_shape, chunk_dir2);
146146
auto a3 = arange(4 * 4);
147147
a3.reshape({4, 4});
148-
a2 = a3;
148+
noalias(a2) = a3;
149149
a2.chunks().flush();
150150
// check that a2 has correct chunks
151151
check_file_equal(chunk_dir2 + "/0.0", xt::xarray<double>({{0, 1}, {4, 5}}));

0 commit comments

Comments
 (0)