|
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 = [ class.new 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
effect.
Changeset link:
http://svn.boost.org/trac/boost/changeset/46225
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