|
Boost Users : |
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-08-21 11:02:42
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_at_[hidden]> wrote:
>
> Hello,
>
> what is the equivalent of:
>
> void foo(int array[])
>
> for boost::array?
>
> Thanks,
> Panayiotis
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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