Boost logo

Boost-Build :

From: Rick Yang (rick68_at_[hidden])
Date: 2008-06-07 14:10:28


Hi all,

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.

#-------------------------------------------------------------------------------------
--- container.jam.o 2008-06-08 02:04:15.000000000 +0800
+++ container.jam 2008-06-08 02:04:48.000000000 +0800
@@ -206,7 +206,7 @@
         if ! [ empty ]
         {
             local size = [ size ] ;
- return [ range 1 : $(size) ] $(size) ;
+ return [ range 1 $(size) ] ;
         }
     }
#-------------------------------------------------------------------------------------

  Best regards,
    Rick Yang





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