24 Oct
2006
24 Oct
'06
11:22 p.m.
Hi, I have the following two code segments. I'm wondering if there is any run time overhead of the get() method. Shall I use the latter one instead of the former one? boost::shared_array a(new int[100]); for(int i = 0; i < 100; ++ i) a[i] = i; boost::shared_array a(new int[100]); int a_ptr = a.get(); for(int i = 0; i < 100; ++ i) a_ptr[i] = i; Thanks, Peng