Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nly
· 13y ago · 0 comments
There's no point. Just make your class movable.
Comments
[–]
cdmh
13y ago
The class is movable already. Reference counting will allow a copy constructor or copy assignment to avoid copying the string object, just increase the reference count.