Boost logo

Boost Users :

From: yinglcs2_at_[hidden]
Date: 2006-01-11 02:14:20

In Java, I can create an array based on the value of
an input parameter of a function:

int[] func (int size) {
   int[] rtn = new int[size];
    // do something
   return rtn;

Can you please tell me if I can do the same with the
Boost.Array library?
>From the example I see, I can only declare the size of
the array during declaration (not dynamically, the rhs
in my example).

If I can't do that with Boost.Array, is there any
other solution?

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