components/stdcxx/patches/063-6891240-vector.patch
changeset 402 94ae4d75524c
equal deleted inserted replaced
401:bf52ef48020c 402:94ae4d75524c
       
     1 --- stdcxx-4.2.1/include/vector	2008-04-24 20:23:57.000000000 -0400
       
     2 +++ stdcxx-4.2.1/include/vector	2011-01-06 18:05:47.301233744 -0500
       
     3 @@ -1226,7 +1226,7 @@
       
     4  #ifdef _RWSTD_BOUNDS_CHECKING
       
     5  
       
     6          _RWSTD_REQUIRES (__n < size (),
       
     7 -                         (_RWSTD_ERROR_LENGTH_ERROR,
       
     8 +                         (_RWSTD_ERROR_OUT_OF_RANGE,
       
     9                            _RWSTD_FUNC ("vector<bool>::[](size_type)"),
       
    10                            __n, size ()));
       
    11  
       
    12 @@ -1239,7 +1239,7 @@
       
    13  #ifdef _RWSTD_BOUNDS_CHECKING
       
    14  
       
    15          _RWSTD_REQUIRES (__n < size (),
       
    16 -                         (_RWSTD_ERROR_LENGTH_ERROR,
       
    17 +                         (_RWSTD_ERROR_OUT_OF_RANGE,
       
    18                            _RWSTD_FUNC ("vector<bool>::[](size_type)"),
       
    19                            __n, size ()));
       
    20  
       
    21 @@ -1250,7 +1250,7 @@
       
    22      reference       at (size_type __n)               
       
    23      { 
       
    24          _RWSTD_REQUIRES (__n < size (),
       
    25 -                         (_RWSTD_ERROR_LENGTH_ERROR,
       
    26 +                         (_RWSTD_ERROR_OUT_OF_RANGE,
       
    27                            _RWSTD_FUNC ("vector<bool>::at(size_type)"),
       
    28                            __n, size ()));
       
    29        return *(begin() + __n); 
       
    30 @@ -1258,7 +1258,7 @@
       
    31      const_reference at (size_type __n)   const 
       
    32      {
       
    33          _RWSTD_REQUIRES (__n < size (),
       
    34 -                         (_RWSTD_ERROR_LENGTH_ERROR,
       
    35 +                         (_RWSTD_ERROR_OUT_OF_RANGE,
       
    36                            _RWSTD_FUNC ("vector<bool>::at(size_type) const"),
       
    37                            __n, size ()));
       
    38