Boost logo

Boost Users :

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


I have a non-growable, size determined by run-time
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
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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at