Boost logo

Boost Users :

From: yinglcs2_at_[hidden]
Date: 2006-01-11 11:24:50


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net