This commit is contained in:
water
2021-06-19 14:25:21 -04:00
parent 57b2f5d72f
commit b824f75af5
4 changed files with 60 additions and 12 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ TEST(CommonUtil, PowerOfTwo) {
}
TEST(CommonUtil, CopyOnWrite) {
CopyOnWrite<int> x(2);
CopyOnWrite<int> x = make_cow<int>(2);
EXPECT_EQ(*x, 2);
*x.mut() = 3;