$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: pegacorn_at_[hidden]
Date: 2006-02-25 05:44:06
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