|
Boost Users : |
Subject: Re: [Boost-users] v_array survival
From: Daniel Krügler (dsp_at_[hidden])
Date: 2008-11-19 11:29:45
Chaman Singh Verma wrote:
> On Wed, Nov 19, 2008 at 1:08 PM, Daniel Krügler <dsp_at_[hidden]
> <mailto:dsp_at_[hidden]>> wrote:
>
> Chaman Singh Verma wrote:
>
> I have one old software which is using v_array, but I don't see
> v_array in the latest
> Boost distribution ? Is this class defunct now and should I
> replace it by vector or
> something else ?
>
>
> A google code search was appropriate, because I couldn't find any
> v_arry in all by boost libs since 1.29:
>
> http://lists.boost.org/Archives/boost/att-111926/v_array.hpp
>
> You seem to adapt *very* old code...
>
> Without seeing your code I suggest to replace it's usage by std::vector.
>
> - Daniel Krügler
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden] <mailto:Boost-users_at_[hidden]>
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
> Hello,
> Latest released codes from MIT and Duke Univ. are that way. What can I do ?
I thought I gave you an answer in my previous posting?!
1) My primary suggestion is to replace all occurrences of v_array by
std::vector (see above).
2) If (1) fails, e.g. because you have no editing rights to the
corresponding sources, you should consider to create your own
v_array.hpp file based on the code given in the link provided above.
But let me warn you: If your most recent boost version was 1.26 and
if you are going to switch to 1.37, you might get into different trouble
than just due to the missing v_array type: Class interfaces might have
slightly changed or your compiler is no longer supported...
Good luck,
Daniel Krügler
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