0
Memory issue in custom shared pointer
Hi Tried to implement the shared pointer functionality: https://www.sololearn.com/en/compiler-playground/cgQM1tS8uM9X https://www.sololearn.com/en/compiler-playground/cgQM1tS8uM9X/?ref=app Can someone help me find issue in move semantic? I am getting issue , but could not find what is causing failure. https://code.sololearn.com/cgQM1tS8uM9X/?ref=app
2 Respuestas
+ 1
you don't seem to check that counter is not a null pointer before dereferencing it ( line 97 ).
0
Thanks. I thought it was due to double delete and not focused on this aspect.
Correction done. Thanks again