libcsptr icon indicating copy to clipboard operation
libcsptr copied to clipboard

Reassignement ?

Open cppmadguy opened this issue 3 years ago • 0 comments

I am a big fan of bringing unique_ptr to GNU C. But I think there is a difference beetween your repo and the cpp standard: reading this https://en.cppreference.com/w/cpp/memory/unique_ptr/operator%3D What happens if I reassign a value ? Is this GNU-C undefined behaviour ?

Reading the exemples, you never return unique_ptr from functions. Again, if it is not possible, it is a key difference with c++ unique_ptr.

cppmadguy avatar Aug 23 '21 12:08 cppmadguy