There is no equivalent, since boost::array must be parametrisized with the size. So boost::array<std::string, 10> has different type as boost::array<std::string, 11>.

You might be able to use:

template<int ArraySize_>
void foo(boost::array<int, ArraySize_> const&);

But this depeneds if you know the size of your array at compile time.

Using std::vector<int> might be of more value ;)

Best Regards,
Ovanes

On 8/21/07, Panayiotis <panayk@gmail.com> wrote:
Hello,

what is the equivalent of:

void foo(int array[])

for boost::array?

Thanks,
Panayiotis
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users