Boost logo

Boost :

Subject: Re: [boost] enhanced vector and deque competency test
From: Giacomo Drago (giacomo_at_[hidden])
Date: 2015-03-20 12:54:32


On 2015-03-20 14:12, Islam Taha wrote:
> Thank you very much
> I have now removed all warnings and it removed the segmentation fault as well.
> It would be appreciated to give me another feedback on the updated code.
> thanks in advance
>
>

Your copy still seems broken.

   Vector<int> a;
   a.push_back(1);
   Vector<int> b(a);
   b[0] = 2;
   std::cout << a[0] << std::endl; // prints 2 for me

(Yes, it's a big deal... Can you check?)

Giacomo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk