Skip to content

Commit 7442740

Browse files
Disable operator_assign
1 parent 0305fd6 commit 7442740

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/0026.container/0001.vector/operator_assign.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ using namespace fast_io::mnp;
88
int main()
99
{
1010
fast_io::vector<int> x{1, 2, 3}, y, z;
11-
auto const w = {4, 5, 6, 7};
1211

1312
print("Initially:\n");
1413
print("x = {", rgvw(x, ", "), "}\ny = {", rgvw(y, ", "), "}\nz = {", rgvw(z, ", "), "}\n");
@@ -21,7 +20,11 @@ int main()
2120
z = std::move(x);
2221
print("x = {", rgvw(x, ", "), "}\nz = {", rgvw(z, ", "), "}\n");
2322

23+
#if 0
24+
auto const w = {4, 5, 6, 7};
25+
2426
print("Assignment of initializer_list w to z:\n");
2527
z = w;
2628
print("w = {", rgvw(w, ", "), "}\nz = {", rgvw(z, ", "), "}\n");
29+
#endif
2730
}

0 commit comments

Comments
 (0)