11 Jan
2006
11 Jan
'06
4:24 p.m.
Hi, I have a non-growable, size determined by run-time array. For example convert this from Java to C: int[] func(int size) [ int[] array = new int[size]; return array; } I was told the only way I can do that is using STL vector. But if I need to have a smart pointer for this STL vector, should I use the c++ auto_ptr? or the Boost's shared_ptr with STL vector or Boost's shared_array? Thank you. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com