From 078f20f2e378543f078e86f8ad256887378ce92b Mon Sep 17 00:00:00 2001 From: tylov Date: Fri, 28 Jul 2023 11:20:25 +0200 Subject: Improved crand docs and commented out the irrelevant 32-bit variants in the benchmark. --- misc/examples/smartpointers/arcvec_erase.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc/examples/smartpointers') diff --git a/misc/examples/smartpointers/arcvec_erase.c b/misc/examples/smartpointers/arcvec_erase.c index ba54c1c7..9d757533 100644 --- a/misc/examples/smartpointers/arcvec_erase.c +++ b/misc/examples/smartpointers/arcvec_erase.c @@ -19,7 +19,8 @@ int main(void) // clone the second 2012 and push it back. // note: cloning make sure that vec.data[2] has ref count 2. - Vec_push(&vec, Arc_clone(vec.data[2])); + Vec_push(&vec, Arc_clone(vec.data[2])); // => share vec.data[2] + Vec_emplace(&vec, *vec.data[2].get); // => deep-copy vec.data[2] printf("vec before erase :"); c_foreach (i, Vec, vec) -- cgit v1.2.3