You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For starters, your acceptStruct function isn't making the comparison you think it is, a struct pointer will never be equal to a struct value. Second, yes you can do a shallow copy with a function, or just dereferencing a pointer, but it's only shallow.
so if I have a struct:
will the first argument be copied - and how is the copy different than the deep copy that this library uses?
The text was updated successfully, but these errors were encountered: