Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-06-07 12:48:39


   Hi Rick.

> I tried the rule vector.insert in my test code:
> #--------------------------------------------------------------
> import container ;
> import "class" ;
> import assert ;
>
> v1 = [ class.new vector 68 500 999 ] ;
> $(v1).insert 4 : 000 ;
>
> assert.result 68 500 000 : $(v1).get ;
> #--------------------------------------------------------------
>
> The result maybe should "68 500 999 000", but vector.insert remove last
> element "999".
> I patch it.

   Thank you for the patch!

   I've cleaned up the module a bit and committed your patch. One slight
thing that was missing was that it did not work correctly with vectors
that contained only empty strings as elements at and after the given
index position.

   Changeset link:

      http://svn.boost.org/trac/boost/changeset/46216

   Thanks again! :-)

   Best regards,
     Jurko Gospodnetić


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk