25 Feb
2006
25 Feb
'06
10:44 a.m.
How should I do to replace the constant pointer with shared_ptr? int main() { const int *ip = new int(1); *ip = 2; // NG ip = new int(2); // OK } How should I do to achieve the above-mentioned example by using shared_ptr? ---- pegacorn