Boost logo

Boost-Build :

From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-06-07 19:52:01

   Hi Rick.

> I tried the rule vector.indices in my test code:
> #--------------------------------------------------------------------------
> import container ;
> import "class" ;
> import assert ;
> v1 = [ vector 68 500 999 36 72 ] ;
> assert.result 1 5 : $(v1).indices ;
> #--------------------------------------------------------------------------
> The result is not "1 2 3 4 5". so the vector.equal rule just check first
> and last elements.

   Thanks for the bug report and the patch.

   I corrected the bug but removed the whole vector.indices rule all
together. Seems to me like it never got used except in that vector.equal
rule and that as its implementation is a one liner and it does not
correspond to any standard C++ container interface function that it
would be better to inline it.

   If anyone finds he needs the vector.indices rule - just holler. It
should be easy enough to add it back but I checked to make sure that no
boost Jamfiles or Boost Build code uses it.

   vector.equal() now works correctly and a test has been added to that

   Changeset link:

   Thanks again!

   Best regards,
     Jurko Gospodnetić

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at