libcsptr
libcsptr copied to clipboard
Reassignement ?
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.