git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: use safer lvalue assignment (copy)
commit5a4296463ad034c38142a9d3d789286109bc4207 authorAndy Arvanitis <andyarvanitis@gmail.com> dateMon 7 Mar 2016, 21:01 (11 years ago) parenta966e02
1 file changed+1−2
pcc/include/purescript.cc+1−2
pcc/include/purescript.cc+1−2
@@ -71,10 +71,9 @@ auto any::operator=(const any& rhs) -> any& {
7171 return *this;
7272}
7373
74−// Takes ownership -- might need to reconsider this
7574auto any::operator=(any& rhs) noexcept -> any& {
7675 type = rhs.type;
77− MOVE_DATA(rhs);
76+ COPY_DATA(rhs);
7877 return *this;
7978}
8079