Ticket #6397: boost.xxxx.warnings.patch

File boost.xxxx.warnings.patch, 8.2 KB (added by Caolán McNamara <caolanm@…>, 11 years ago)
  • boost_1_44_0/boost/multi_array/collection_concept.hpp

    old new  
    4343      i = c.end();
    4444      c.swap(c);
    4545    }
    46     void const_constraints(const Collection& c) {
    47       ci = c.begin();
    48       ci = c.end();
    49       n = c.size();
    50       b = c.empty();
     46    void const_constraints(const Collection& c_) {
     47      ci = c_.begin();
     48      ci = c_.end();
     49      n = c_.size();
     50      b = c_.empty();
    5151    }
    5252    Collection c;
    5353    bool b;
  • boost_1_44_0/boost/multi_array/concept_checks.hpp

    old new  
    3939
    4040    template <typename Array, typename IdxGen, typename Call_Type>
    4141    static void call(Array& a, const IdxGen& idgen, Call_Type c) {
    42       typedef typename Array::index_range index_range;
    43       typedef typename Array::index index;
     42      typedef typename Array::index_range index_range_;
     43      typedef typename Array::index index_;
    4444      idgen_helper<N-1>::call(a,idgen[c],c);
    4545    }
    4646  };
     
    5050
    5151    template <typename Array, typename IdxGen, typename Call_Type>
    5252    static void call(Array& a, const IdxGen& idgen, Call_Type) {
    53       typedef typename Array::index_range index_range;
    54       typedef typename Array::index index;
     53      typedef typename Array::index_range index_range_;
     54      typedef typename Array::index index_;
    5555      a[ idgen ];
    5656    }
    5757  };
     
    153153      const_constraints(a);
    154154    }
    155155
    156     void const_constraints(const Array& a) {
     156    void const_constraints(const Array& a_) {
    157157
    158158      //      value_type vt = a[ id ];
    159159
    160160      // Test slicing, keeping only the first dimension, losing the rest
    161       idgen_helper<NumDims-1>::call(a,idgen[range],id);
     161      idgen_helper<NumDims-1>::call(a_,idgen[range],id);
    162162
    163163      // Test slicing, keeping all dimensions.
    164       idgen_helper<NumDims-1>::call(a,idgen[range],range);
     164      idgen_helper<NumDims-1>::call(a_,idgen[range],range);
    165165
    166       st = a.size();
    167       st = a.num_dimensions();
    168       st = a.num_elements();
    169       stp = a.shape();
    170       idp = a.strides();
    171       idp = a.index_bases();
    172       cit = a.begin();
    173       cit = a.end();
    174       crit = a.rbegin();
    175       crit = a.rend();
    176       eltp = a.origin();
     166      st = a_.size();
     167      st = a_.num_dimensions();
     168      st = a_.num_elements();
     169      stp = a_.shape();
     170      idp = a_.strides();
     171      idp = a_.index_bases();
     172      cit = a_.begin();
     173      cit = a_.end();
     174      crit = a_.rbegin();
     175      crit = a_.rend();
     176      eltp = a_.origin();
    177177    }
    178178
    179179    typedef typename Array::value_type value_type;
  • boost_1_44_0/boost/multi_array/extent_range.hpp

    old new  
    2626  typedef Extent index;
    2727  typedef SizeType size_type;
    2828
    29   extent_range(index start, index finish) :
    30     super_type(start,finish) { }
     29  extent_range(index start_, index finish_) :
     30    super_type(start_,finish_) { }
    3131
    32   extent_range(index finish) :
    33     super_type(0,finish) { }
     32  extent_range(index finish_) :
     33    super_type(0,finish_) { }
    3434
    3535  extent_range() : super_type(0,0) { }
    3636
  • boost_1_44_0/boost/multi_array/index_range.hpp

    old new  
    6060      degenerate_ = true;
    6161    }
    6262
    63     explicit index_range(index start, index finish, index stride=1)
    64       : start_(start), finish_(finish), stride_(stride),
     63    explicit index_range(index i_start, index i_finish, index i_stride=1)
     64      : start_(i_start), finish_(i_finish), stride_(i_stride),
    6565        degenerate_(false)
    6666    { }
    6767
     
    107107
    108108    index stride() const { return stride_; }
    109109
    110     void set_index_range(index start, index finish, index stride=1)
     110    void set_index_range(index i_start, index i_finish, index i_stride=1)
    111111    {
    112       start_ = start;
    113       finish_ = finish;
    114       stride_ = stride;
     112      start_ = i_start;
     113      finish_ = i_finish;
     114      stride_ = i_stride;
    115115    }
    116116
    117117    static index_range all()
  • boost_1_44_0/boost/multi_array/multi_array_ref.hpp

    old new  
    124124  }
    125125 
    126126  template <class InputIterator>
    127   void assign(InputIterator begin, InputIterator end) {
     127  void assign(InputIterator begin_, InputIterator end_) {
    128128    boost::function_requires<InputIteratorConcept<InputIterator> >();
    129129
    130     InputIterator in_iter = begin;
     130    InputIterator in_iter = begin_;
    131131    T* out_iter = base_;
    132132    std::size_t copy_count=0;
    133     while (in_iter != end && copy_count < num_elements_) {
     133    while (in_iter != end_ && copy_count < num_elements_) {
    134134      *out_iter++ = *in_iter++;
    135135      copy_count++;     
    136136    }
     
    327327  explicit
    328328  const_multi_array_ref(TPtr base,
    329329                        const storage_order_type& so,
    330                         const index * index_bases,
     330                        const index * index_bases_,
    331331                        const size_type* extents) :
    332332    base_(base), storage_(so), origin_offset_(0), directional_offset_(0)
    333333 {
    334    // If index_bases or extents is null, then initialize the corresponding
     334   // If index_bases_ or extents is null, then initialize the corresponding
    335335   // private data to zeroed lists.
    336    if(index_bases) {
     336   if(index_bases_) {
    337337     boost::detail::multi_array::
    338        copy_n(index_bases,NumDims,index_base_list_.begin());
     338       copy_n(index_bases_,NumDims,index_base_list_.begin());
    339339   } else {
    340340     std::fill_n(index_base_list_.begin(),NumDims,0);
    341341   }
  • boost_1_44_0/boost/multi_array/storage_order.hpp

    old new  
    3434  public:
    3535    typedef detail::multi_array::size_type size_type;
    3636    template <typename OrderingIter, typename AscendingIter>
    37     general_storage_order(OrderingIter ordering,
    38                           AscendingIter ascending) {
    39       boost::detail::multi_array::copy_n(ordering,NumDims,ordering_.begin());
    40       boost::detail::multi_array::copy_n(ascending,NumDims,ascending_.begin());
     37    general_storage_order(OrderingIter i_ordering,
     38                          AscendingIter i_ascending) {
     39      boost::detail::multi_array::copy_n(i_ordering,NumDims,ordering_.begin());
     40      boost::detail::multi_array::copy_n(i_ascending,NumDims,ascending_.begin());
    4141    }
    4242
    4343    // RG - ideally these would not be necessary, but some compilers
  • boost_1_44_0/boost/multi_array/subarray.hpp

    old new  
    181181
    182182  const_sub_array (TPtr base,
    183183                 const size_type* extents,
    184                  const index* strides,
     184                 const index* i_strides,
    185185                 const index* index_base) :
    186     base_(base), extents_(extents), strides_(strides),
     186    base_(base), extents_(extents), strides_(i_strides),
    187187    index_base_(index_base) {
    188188  }
    189189
  • boost_1_44_0/boost/multi_array/view.hpp

    old new  
    231231  template <typename ExtentList, typename Index>
    232232  explicit const_multi_array_view(TPtr base,
    233233                           const ExtentList& extents,
    234                            const boost::array<Index,NumDims>& strides):
     234                           const boost::array<Index,NumDims>& strides_):
    235235    base_(base), origin_offset_(0) {
    236236
    237237    index_base_list_.assign(0);
     
    240240    boost::detail::multi_array::
    241241      copy_n(extents.begin(),NumDims,extent_list_.begin());
    242242    boost::detail::multi_array::
    243       copy_n(strides.begin(),NumDims,stride_list_.begin());
     243      copy_n(strides_.begin(),NumDims,stride_list_.begin());
    244244
    245245    // Calculate the array size
    246246    num_elements_ = std::accumulate(extent_list_.begin(),extent_list_.end(),