Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dbaupp
· 9y ago · 0 comments
Being an ARC backed array isn't like std::string, and I don't see why having that copy-on-write behaviour implies it is fundamental. Could you expand?
Comments
[–]
wuch
9y ago
In pre C++11 it was quite typical for std::string to be implemented with COW semantics. Since C++11 standard it is no longer permitted, though it is not necessarily reflected in all stdlib implementations.
[–]
valarauca1
9y ago
This is my mistake. I assumed shared pointer semantics and applied it to the wrong type :\