Updating values in C++ set of pointer
I got following code that intends to extract value from map of pointers, modified pointed object and insert it back. But inserting does not work.
SEGV in c++ std::set erase
I am getting segmentation fault in c++ std::set erase function. I don’t know the reason of SEGV. please check the code below and help me know the reason of this SEGV.