Ticket #3924: boost_r59655_gcc_warning_cleanup.patch

File boost_r59655_gcc_warning_cleanup.patch, 53.3 KB (added by Tatu Kilappa <tatu.kilappa@…>, 13 years ago)

Removes excessive gcc warning barf when using gil or property_tree

  • boost/gil/locator.hpp

     
    309309
    310310private:
    311311    template <typename X> friend class memory_based_2d_locator;
    312     std::ptrdiff_t offset(x_coord_t x, y_coord_t y)        const { return y*row_size() + x*pixel_size(); }
     312    std::ptrdiff_t offset(x_coord_t p_x, y_coord_t p_y)        const { return p_y*row_size() + p_x*pixel_size(); }
    313313    StepIterator _p;
    314314};
    315315
  • boost/gil/virtual_locator.hpp

     
    5353        }
    5454    };
    5555
    56     virtual_2d_locator(const point_t& p=point_t(0,0), const point_t& step=point_t(1,1), const deref_fn_t& d=deref_fn_t()) : _p(p,step,d) {}
     56    virtual_2d_locator(const point_t& p=point_t(0,0), const point_t& p_step=point_t(1,1), const deref_fn_t& d=deref_fn_t()) : _p(p,p_step,d) {}
    5757    template <typename D, bool TR> virtual_2d_locator(const virtual_2d_locator<D,TR>& loc, coord_t y_step)
    5858        : _p(loc.pos(), point_t(loc.step().x,loc.step().y*y_step),     loc.deref_fn()) {}
    5959    template <typename D, bool TR> virtual_2d_locator(const virtual_2d_locator<D,TR>& loc, coord_t x_step, coord_t y_step, bool transpose=false)
  • boost/gil/image_view.hpp

     
    101101    template <typename View> image_view(const View& iv)                                    : _dimensions(iv.dimensions()), _pixels(iv.pixels()) {}
    102102
    103103    template <typename L2> image_view(const point_t& sz            , const L2& loc)        : _dimensions(sz),          _pixels(loc) {}
    104     template <typename L2> image_view(coord_t width, coord_t height, const L2& loc)        : _dimensions(x_coord_t(width),y_coord_t(height)), _pixels(loc) {}
     104    template <typename L2> image_view(coord_t p_width, coord_t p_height, const L2& loc)        : _dimensions(x_coord_t(p_width),y_coord_t(p_height)), _pixels(loc) {}
    105105
    106106    template <typename View> image_view& operator=(const View& iv)  { _pixels=iv.pixels(); _dimensions=iv.dimensions(); return *this; }
    107107    image_view& operator=(const image_view& iv)                     { _pixels=iv.pixels(); _dimensions=iv.dimensions(); return *this; }
  • boost/gil/position_iterator.hpp

     
    5252    typedef typename Deref::argument_type      point_t;
    5353
    5454    position_iterator() {}
    55     position_iterator(const point_t& p, const point_t& step, const Deref& d) : _p(p), _step(step), _d(d) {}
     55    position_iterator(const point_t& p, const point_t& p_step, const Deref& d) : _p(p), _step(p_step), _d(d) {}
    5656
    5757    position_iterator(const position_iterator& p) : _p(p._p), _step(p._step), _d(p._d) {}
    5858    template <typename D> position_iterator(const position_iterator<D,Dim>& p) : _p(p._p), _step(p._step), _d(p._d) {}
  • boost/gil/iterator_from_2d.hpp

     
    7878    x_iterator&     x()                   { return _p.x(); }
    7979
    8080    iterator_from_2d(){}
    81     iterator_from_2d(const Loc2& p, std::ptrdiff_t width, std::ptrdiff_t x=0, std::ptrdiff_t y=0) : _coords(x,y), _width(width), _p(p) {}
     81    iterator_from_2d(const Loc2& p, std::ptrdiff_t p_width, std::ptrdiff_t p_x=0, std::ptrdiff_t p_y=0) : _coords(p_x,p_y), _width(p_width), _p(p) {}
    8282    iterator_from_2d(const iterator_from_2d& pit) : _coords(pit._coords), _width(pit._width), _p(pit._p) {}
    8383    template <typename Loc> iterator_from_2d(const iterator_from_2d<Loc>& pit) : _coords(pit._coords), _width(pit._width), _p(pit._p) {}
    8484
  • boost/gil/pixel_iterator_adaptor.hpp

     
    6262    dereference_iterator_adaptor() {}
    6363    template <typename Iterator1>
    6464    dereference_iterator_adaptor(const dereference_iterator_adaptor<Iterator1,DFn>& dit) : parent_t(dit.base()), _deref_fn(dit._deref_fn) {}
    65     dereference_iterator_adaptor(Iterator it, DFn deref_fn=DFn()) : parent_t(it), _deref_fn(deref_fn) {}
     65    dereference_iterator_adaptor(Iterator it, DFn p_deref_fn=DFn()) : parent_t(it), _deref_fn(p_deref_fn) {}
    6666    template <typename Iterator1, typename DFn1>
    6767    dereference_iterator_adaptor(const dereference_iterator_adaptor<Iterator1,DFn1>& it) : parent_t(it.base()), _deref_fn(it._deref_fn) {}
    6868    /// For some reason operator[] provided by iterator_facade returns a custom class that is convertible to reference
  • boost/gil/channel.hpp

     
    482482    typedef const packed_dynamic_channel_reference<BitField,NumBits,true>  mutable_reference;
    483483    typedef typename parent_t::integer_t                          integer_t;
    484484
    485     packed_dynamic_channel_reference(const void* data_ptr, unsigned first_bit) : parent_t(data_ptr), _first_bit(first_bit) {}
     485    packed_dynamic_channel_reference(const void* data_ptr, unsigned p_first_bit) : parent_t(data_ptr), _first_bit(p_first_bit) {}
    486486    packed_dynamic_channel_reference(const const_reference&   ref) : parent_t(ref._data_ptr), _first_bit(ref._first_bit) {}
    487487    packed_dynamic_channel_reference(const mutable_reference& ref) : parent_t(ref._data_ptr), _first_bit(ref._first_bit) {}
    488488
     
    510510    typedef const packed_dynamic_channel_reference<BitField,NumBits,true>  mutable_reference;
    511511    typedef typename parent_t::integer_t                          integer_t;
    512512
    513     packed_dynamic_channel_reference(void* data_ptr, unsigned first_bit) : parent_t(data_ptr), _first_bit(first_bit) {}
     513    packed_dynamic_channel_reference(void* data_ptr, unsigned p_first_bit) : parent_t(data_ptr), _first_bit(p_first_bit) {}
    514514    packed_dynamic_channel_reference(const packed_dynamic_channel_reference& ref) : parent_t(ref._data_ptr), _first_bit(ref._first_bit) {}
    515515
    516516    const packed_dynamic_channel_reference& operator=(integer_t value) const { assert(value<=parent_t::max_val); set_unsafe(value); return *this; }
  • boost/gil/bit_aligned_pixel_reference.hpp

     
    5454
    5555public:
    5656    bit_range() : _current_byte(NULL), _bit_offset(0) {}
    57     bit_range(byte_t* current_byte, int bit_offset) : _current_byte(current_byte), _bit_offset(bit_offset) { assert(bit_offset>=0 && bit_offset<8); }
     57    bit_range(byte_t* p_current_byte, int p_bit_offset) : _current_byte(p_current_byte), _bit_offset(p_bit_offset) { assert(p_bit_offset>=0 && p_bit_offset<8); }
    5858
    5959    bit_range(const bit_range& br) : _current_byte(br._current_byte), _bit_offset(br._bit_offset) {}
    6060    template <bool M> bit_range(const bit_range<RangeSize,M>& br) : _current_byte(br._current_byte), _bit_offset(br._bit_offset) {}
     
    135135
    136136    bit_aligned_pixel_reference(){}
    137137    bit_aligned_pixel_reference(data_ptr_t data_ptr, int bit_offset)   : _bit_range(data_ptr, bit_offset) {}
    138     explicit bit_aligned_pixel_reference(const bit_range_t& bit_range) : _bit_range(bit_range) {}
     138    explicit bit_aligned_pixel_reference(const bit_range_t& p_bit_range) : _bit_range(p_bit_range) {}
    139139    template <bool IsMutable2> bit_aligned_pixel_reference(const bit_aligned_pixel_reference<BitField,ChannelBitSizes,Layout,IsMutable2>& p) : _bit_range(p._bit_range) {}
    140140
    141141    // Grayscale references can be constructed from the channel reference
  • boost/gil/image.hpp

     
    6868        _memory(0), _align_in_bytes(alignment), _alloc(alloc_in) {}
    6969
    7070    // Create with dimensions and optional initial value and alignment
    71     image(const point_t& dimensions,
     71    image(const point_t& p_dimensions,
    7272          std::size_t alignment=0,
    7373          const Alloc alloc_in = Alloc()) : _memory(0), _align_in_bytes(alignment), _alloc(alloc_in) {
    74         allocate_and_default_construct(dimensions);
     74        allocate_and_default_construct(p_dimensions);
    7575    }
    76     image(x_coord_t width, y_coord_t height,
     76    image(x_coord_t p_width, y_coord_t p_height,
    7777          std::size_t alignment=0,
    7878          const Alloc alloc_in = Alloc()) : _memory(0), _align_in_bytes(alignment), _alloc(alloc_in) {
    79         allocate_and_default_construct(point_t(width,height));
     79        allocate_and_default_construct(point_t(p_width,p_height));
    8080    }
    81     image(const point_t& dimensions,
     81    image(const point_t& p_dimensions,
    8282          const Pixel& p_in,
    8383          std::size_t alignment,
    8484          const Alloc alloc_in = Alloc())  :
    8585        _memory(0), _align_in_bytes(alignment), _alloc(alloc_in) {
    86         allocate_and_fill(dimensions, p_in);
     86        allocate_and_fill(p_dimensions, p_in);
    8787    }
    88     image(x_coord_t width, y_coord_t height,
     88    image(x_coord_t p_width, y_coord_t p_height,
    8989          const Pixel& p_in,
    9090          std::size_t alignment,
    9191          const Alloc alloc_in = Alloc())  :
    9292        _memory(0), _align_in_bytes(alignment), _alloc(alloc_in) {
    93         allocate_and_fill(point_t(width,height),p_in);
     93        allocate_and_fill(point_t(p_width,p_height),p_in);
    9494    }
    9595
    9696    image(const image& img) :
     
    146146            swap(tmp);
    147147        }
    148148    }
    149     void recreate(x_coord_t width, y_coord_t height, std::size_t alignment=0, const Alloc alloc_in = Alloc()) {
    150         recreate(point_t(width,height),alignment,alloc_in);
     149    void recreate(x_coord_t p_width, y_coord_t p_height, std::size_t alignment=0, const Alloc alloc_in = Alloc()) {
     150        recreate(point_t(p_width,p_height),alignment,alloc_in);
    151151    }
    152152    void recreate(const point_t& dims,
    153153                  const Pixel& p_in, std::size_t alignment, const Alloc alloc_in = Alloc()) {
     
    156156            swap(tmp);
    157157        }
    158158    }
    159     void recreate(x_coord_t width, y_coord_t height,
     159    void recreate(x_coord_t p_width, y_coord_t p_height,
    160160                  const Pixel& p_in, std::size_t alignment, const Alloc alloc_in = Alloc()) {
    161         recreate(point_t(width,height),p_in,alignment,alloc_in);
     161        recreate(point_t(p_width,p_height),p_in,alignment,alloc_in);
    162162    }
    163163
    164164    view_t       _view;      // contains pointer to the pixels, the image size and ways to navigate pixels
     
    167167    std::size_t    _align_in_bytes;
    168168    allocator_type _alloc;
    169169
    170     void allocate_and_default_construct(const point_t& dimensions) {
     170    void allocate_and_default_construct(const point_t& p_dimensions) {
    171171        try {
    172             allocate_(dimensions,mpl::bool_<IsPlanar>());
     172            allocate_(p_dimensions,mpl::bool_<IsPlanar>());
    173173            default_construct_pixels(_view);
    174         } catch(...) { deallocate(dimensions); throw; }
     174        } catch(...) { deallocate(p_dimensions); throw; }
    175175    }
    176176
    177     void allocate_and_fill(const point_t& dimensions, const Pixel& p_in) {
     177    void allocate_and_fill(const point_t& p_dimensions, const Pixel& p_in) {
    178178        try {
    179             allocate_(dimensions,mpl::bool_<IsPlanar>());
     179            allocate_(p_dimensions,mpl::bool_<IsPlanar>());
    180180            uninitialized_fill_pixels(_view, p_in);
    181         } catch(...) { deallocate(dimensions); throw; }
     181        } catch(...) { deallocate(p_dimensions); throw; }
    182182    }
    183183
    184184    template <typename View>
    185     void allocate_and_copy(const point_t& dimensions, const View& v) {
     185    void allocate_and_copy(const point_t& p_dimensions, const View& v) {
    186186        try {
    187             allocate_(dimensions,mpl::bool_<IsPlanar>());
     187            allocate_(p_dimensions,mpl::bool_<IsPlanar>());
    188188            uninitialized_copy_pixels(v,_view);
    189         } catch(...) { deallocate(dimensions); throw; }
     189        } catch(...) { deallocate(p_dimensions); throw; }
    190190    }
    191191
    192     void deallocate(const point_t& dimensions) {
    193         if (_memory) _alloc.deallocate(_memory, total_allocated_size_in_bytes(dimensions));
     192    void deallocate(const point_t& p_dimensions) {
     193        if (_memory) _alloc.deallocate(_memory, total_allocated_size_in_bytes(p_dimensions));
    194194    }
    195195
    196     std::size_t total_allocated_size_in_bytes(const point_t& dimensions) const {
    197         std::size_t size_in_units = get_row_size_in_memunits(dimensions.x)*dimensions.y;
     196    std::size_t total_allocated_size_in_bytes(const point_t& p_dimensions) const {
     197        std::size_t size_in_units = get_row_size_in_memunits(p_dimensions.x)*p_dimensions.y;
    198198        if (IsPlanar)
    199199            size_in_units = size_in_units*num_channels<view_t>::value;
    200200
     
    203203            + (_align_in_bytes>0 ? _align_in_bytes-1:0);    // add extra padding in case we need to align the first image pixel
    204204    }
    205205
    206     std::size_t get_row_size_in_memunits(x_coord_t width) const {   // number of units per row
    207         std::size_t size_in_memunits = width*memunit_step(typename view_t::x_iterator());
     206    std::size_t get_row_size_in_memunits(x_coord_t p_width) const {   // number of units per row
     207        std::size_t size_in_memunits = p_width*memunit_step(typename view_t::x_iterator());
    208208        if (_align_in_bytes>0) {
    209209            std::size_t alignment_in_memunits=_align_in_bytes*byte_to_memunit<typename view_t::x_iterator>::value;
    210210            return align(size_in_memunits, alignment_in_memunits);
     
    212212        return size_in_memunits;
    213213    }
    214214   
    215     void allocate_(const point_t& dimensions, mpl::false_) {  // if it throws and _memory!=0 the client must deallocate _memory
    216         _memory=_alloc.allocate(total_allocated_size_in_bytes(dimensions));
     215    void allocate_(const point_t& p_dimensions, mpl::false_) {  // if it throws and _memory!=0 the client must deallocate _memory
     216        _memory=_alloc.allocate(total_allocated_size_in_bytes(p_dimensions));
    217217        unsigned char* tmp=(_align_in_bytes>0) ? (unsigned char*)align((std::size_t)_memory,_align_in_bytes) : _memory;
    218         _view=view_t(dimensions,typename view_t::locator(typename view_t::x_iterator(tmp),get_row_size_in_memunits(dimensions.x)));
     218        _view=view_t(p_dimensions,typename view_t::locator(typename view_t::x_iterator(tmp),get_row_size_in_memunits(p_dimensions.x)));
    219219    }
    220220
    221     void allocate_(const point_t& dimensions, mpl::true_) {   // if it throws and _memory!=0 the client must deallocate _memory
    222         std::size_t row_size=get_row_size_in_memunits(dimensions.x);
    223         std::size_t plane_size=row_size*dimensions.y;
    224         _memory=_alloc.allocate(total_allocated_size_in_bytes(dimensions));
     221    void allocate_(const point_t& p_dimensions, mpl::true_) {   // if it throws and _memory!=0 the client must deallocate _memory
     222        std::size_t row_size=get_row_size_in_memunits(p_dimensions.x);
     223        std::size_t plane_size=row_size*p_dimensions.y;
     224        _memory=_alloc.allocate(total_allocated_size_in_bytes(p_dimensions));
    225225        unsigned char* tmp=(_align_in_bytes>0) ? (unsigned char*)align((std::size_t)_memory,_align_in_bytes) : _memory;
    226226        typename view_t::x_iterator first;
    227227        for (int i=0; i<num_channels<view_t>::value; ++i) {
    228228            dynamic_at_c(first,i) = (typename channel_type<view_t>::type*)tmp;
    229229            memunit_advance(dynamic_at_c(first,i), plane_size*i);
    230230        }
    231         _view=view_t(dimensions, typename view_t::locator(first, row_size));
     231        _view=view_t(p_dimensions, typename view_t::locator(first, row_size));
    232232    }
    233233};
    234234
  • boost/gil/step_iterator.hpp

     
    133133struct memunit_step_fn {
    134134    typedef std::ptrdiff_t difference_type;
    135135
    136     memunit_step_fn(difference_type step=memunit_step(Iterator())) : _step(step) {}
     136    memunit_step_fn(difference_type p_step=memunit_step(Iterator())) : _step(p_step) {}
    137137
    138138    difference_type difference(const Iterator& it1, const Iterator& it2) const { return memunit_distance(it1,it2)/_step; }
    139139    void            advance(Iterator& it, difference_type d)             const { memunit_advance(it,d*_step); }
    140140    difference_type step()                                               const { return _step; }
    141141
    142     void            set_step(std::ptrdiff_t step) { _step=step; }
     142    void            set_step(std::ptrdiff_t p_step) { _step=p_step; }
    143143private:
    144144    GIL_CLASS_REQUIRE(Iterator, boost::gil, MemoryBasedIteratorConcept)
    145145    difference_type _step;
  • boost/gil/extension/io/io_error.hpp

     
    2424
    2525namespace boost { namespace gil {
    2626
     27inline void io_error(const char* descr)
     28#if BOOST_WORKAROUND(__GNUC__, >= 3)
     29                                                __attribute__((noreturn))
     30#endif
     31;
    2732inline void io_error(const char* descr) { throw std::ios_base::failure(descr); }
    2833inline void io_error_if(bool expr, const char* descr="") { if (expr) io_error(descr); }
    2934
  • boost/gil/algorithm.hpp

     
    192192/// Source range is delimited by image iterators
    193193template <typename IL, typename O>  // IL Models ConstPixelLocatorConcept, O Models PixelIteratorConcept
    194194struct copier_n<iterator_from_2d<IL>,O> {
    195     typedef typename std::iterator_traits<iterator_from_2d<IL> >::difference_type diff_t;
    196     GIL_FORCEINLINE void operator()(iterator_from_2d<IL> src, diff_t n, O dst) const {
     195    typedef typename std::iterator_traits<iterator_from_2d<IL> >::difference_type it_diff_t;
     196    GIL_FORCEINLINE void operator()(iterator_from_2d<IL> src, it_diff_t n, O dst) const {
    197197        gil_function_requires<PixelLocatorConcept<IL> >();
    198198        gil_function_requires<MutablePixelIteratorConcept<O> >();
    199199        while (n>0) {
  • boost/detail/workaround.hpp

     
    6565#else
    6666#define BOOST_MSVC_WORKAROUND_GUARD 0
    6767#endif
     68#ifndef BOOST_MSVC_FULL_VER
     69#define BOOST_MSVC_FULL_VER_WORKAROUND_GUARD 1
     70#else
     71#define BOOST_MSVC_FULL_VER_WORKAROUND_GUARD 0
     72#endif
    6873#ifndef __GNUC__
    6974#define __GNUC___WORKAROUND_GUARD 1
    7075#else
  • boost/multi_index/sequenced_index.hpp

     
    346346  }
    347347
    348348  template<typename Modifier,typename Rollback>
    349   bool modify(iterator position,Modifier mod,Rollback back)
     349  bool modify(iterator position,Modifier mod,Rollback p_back)
    350350  {
    351351    BOOST_MULTI_INDEX_CHECK_VALID_ITERATOR(position);
    352352    BOOST_MULTI_INDEX_CHECK_DEREFERENCEABLE_ITERATOR(position);
     
    363363#endif
    364364
    365365    return this->final_modify_(
    366       mod,back,static_cast<final_node_type*>(position.get_node()));
     366      mod,p_back,static_cast<final_node_type*>(position.get_node()));
    367367  }
    368368
    369369  void swap(sequenced_index<SuperMeta,TagList>& x)
  • boost/multi_index/ordered_index.hpp

     
    436436
    437437  template<typename CompatibleKey,typename CompatibleCompare>
    438438  iterator find(
    439     const CompatibleKey& x,const CompatibleCompare& comp)const
     439    const CompatibleKey& x,const CompatibleCompare& p_comp)const
    440440  {
    441     return make_iterator(ordered_index_find(root(),header(),key,x,comp));
     441    return make_iterator(ordered_index_find(root(),header(),key,x,p_comp));
    442442  }
    443443
    444444  template<typename CompatibleKey>
     
    448448  }
    449449
    450450  template<typename CompatibleKey,typename CompatibleCompare>
    451   size_type count(const CompatibleKey& x,const CompatibleCompare& comp)const
     451  size_type count(const CompatibleKey& x,const CompatibleCompare& p_comp)const
    452452  {
    453     std::pair<iterator,iterator> p=equal_range(x,comp);
     453    std::pair<iterator,iterator> p=equal_range(x,p_comp);
    454454    size_type n=std::distance(p.first,p.second);
    455455    return n;
    456456  }
     
    464464
    465465  template<typename CompatibleKey,typename CompatibleCompare>
    466466  iterator lower_bound(
    467     const CompatibleKey& x,const CompatibleCompare& comp)const
     467    const CompatibleKey& x,const CompatibleCompare& p_comp)const
    468468  {
    469469    return make_iterator(
    470       ordered_index_lower_bound(root(),header(),key,x,comp));
     470      ordered_index_lower_bound(root(),header(),key,x,p_comp));
    471471  }
    472472
    473473  template<typename CompatibleKey>
     
    479479
    480480  template<typename CompatibleKey,typename CompatibleCompare>
    481481  iterator upper_bound(
    482     const CompatibleKey& x,const CompatibleCompare& comp)const
     482    const CompatibleKey& x,const CompatibleCompare& p_comp)const
    483483  {
    484484    return make_iterator(
    485       ordered_index_upper_bound(root(),header(),key,x,comp));
     485      ordered_index_upper_bound(root(),header(),key,x,p_comp));
    486486  }
    487487
    488488  template<typename CompatibleKey>
     
    497497
    498498  template<typename CompatibleKey,typename CompatibleCompare>
    499499  std::pair<iterator,iterator> equal_range(
    500     const CompatibleKey& x,const CompatibleCompare& comp)const
     500    const CompatibleKey& x,const CompatibleCompare& p_comp)const
    501501  {
    502502    std::pair<node_type*,node_type*> p=
    503       ordered_index_equal_range(root(),header(),key,x,comp);
     503      ordered_index_equal_range(root(),header(),key,x,p_comp);
    504504    return std::pair<iterator,iterator>(
    505505      make_iterator(p.first),make_iterator(p.second));
    506506  }
  • boost/multi_index/detail/index_matcher.hpp

     
    132132        entries(),entries()+size_,
    133133        entry(node),entry::less_by_node()); /* localize entry */
    134134    ent->ordered=false;
    135     std::size_t n=ent->pos;                 /* get its position */
     135    std::size_t epos=ent->pos;                 /* get its position */
    136136
    137137    entry dummy(0);
    138     dummy.pile_top=n;
     138    dummy.pile_top=epos;
    139139
    140140    entry* pile_ent=                        /* find the first available pile */
    141141      std::lower_bound(                     /* to stack the entry            */
    142142        entries(),entries()+num_piles,
    143143        dummy,entry::less_by_pile_top());
    144144
    145     pile_ent->pile_top=n;                   /* stack the entry */
     145    pile_ent->pile_top=epos;                   /* stack the entry */
    146146    pile_ent->pile_top_entry=ent;       
    147147
    148148    /* if not the first pile, link entry to top of the preceding pile */
     
    164164       */
    165165
    166166      entry* ent=entries()[num_piles-1].pile_top_entry;
    167       for(std::size_t n=num_piles;n--;){
     167      for(std::size_t pnum=num_piles;pnum--;){
    168168        ent->ordered=true;
    169169        ent=ent->previous;
    170170      }
  • boost/property_tree/detail/exception_implementation.hpp

     
    3030    ///////////////////////////////////////////////////////////////////////////
    3131    // ptree_error
    3232
    33     inline ptree_error::ptree_error(const std::string &what):
    34         std::runtime_error(what)
     33    inline ptree_error::ptree_error(const std::string &p_what):
     34        std::runtime_error(p_what)
    3535    {
    3636    }
    3737
     
    4343    // ptree_bad_data
    4444
    4545    template<class D> inline
    46     ptree_bad_data::ptree_bad_data(const std::string &what, const D &data):
    47         ptree_error(what), m_data(data)
     46    ptree_bad_data::ptree_bad_data(const std::string &p_what, const D &p_data):
     47        ptree_error(p_what), m_data(p_data)
    4848    {
    4949    }
    5050
     
    6262    // ptree_bad_path
    6363
    6464    template<class P> inline
    65     ptree_bad_path::ptree_bad_path(const std::string &what, const P &path):
    66         ptree_error(detail::prepare_bad_path_what(what, path)), m_path(path)
     65    ptree_bad_path::ptree_bad_path(const std::string &p_what, const P &p_path):
     66        ptree_error(detail::prepare_bad_path_what(p_what, p_path)), m_path(p_path)
    6767    {
    6868
    6969    }
  • boost/property_tree/detail/file_parser_error.hpp

     
    2626        // Construction & destruction
    2727
    2828        // Construct error
    29         file_parser_error(const std::string &message,
    30                           const std::string &filename,
    31                           unsigned long line) :
    32             ptree_error(format_what(message, filename, line)),
    33             m_message(message), m_filename(filename), m_line(line)
     29        file_parser_error(const std::string &p_message,
     30                          const std::string &p_filename,
     31                          unsigned long p_line) :
     32            ptree_error(format_what(p_message, p_filename, p_line)),
     33            m_message(p_message), m_filename(p_filename), m_line(p_line)
    3434        {
    3535        }
    3636
     
    6969        unsigned long m_line;
    7070
    7171        // Format error message to be returned by std::runtime_error::what()
    72         std::string format_what(const std::string &message,
    73                                 const std::string &filename,
    74                                 unsigned long line)
     72        std::string format_what(const std::string &p_message,
     73                                const std::string &p_filename,
     74                                unsigned long p_line)
    7575        {
    7676            std::stringstream stream;
    77             if (line > 0)
    78                 stream << (filename.empty() ? "<unspecified file>"
    79                                             : filename.c_str())
    80                        << '(' << line << "): "
    81                        << message;
     77            if (p_line > 0)
     78                stream << (p_filename.empty() ? "<unspecified file>"
     79                                            : p_filename.c_str())
     80                       << '(' << p_line << "): "
     81                       << p_message;
    8282            else
    83                 stream << (filename.empty() ? "<unspecified file>"
    84                                             : filename.c_str())
    85                        << ": " << message;
     83                stream << (p_filename.empty() ? "<unspecified file>"
     84                                            : p_filename.c_str())
     85                       << ": " << p_message;
    8686            return stream.str();
    8787        }
    8888
  • boost/property_tree/detail/rapidxml.hpp

     
    8080    public:
    8181   
    8282        //! Constructs parse error
    83         parse_error(const char *what, void *where)
    84             : m_what(what)
    85             , m_where(where)
     83        parse_error(const char *p_what, void *p_where)
     84            : m_what(p_what)
     85            , m_where(p_where)
    8686        {
    8787        }
    8888
     
    724724        //! Use name(const Ch *) function to have the length automatically calculated (string must be zero terminated).
    725725        //! \param name Name of node to set. Does not have to be zero terminated.
    726726        //! \param size Size of name, in characters. This does not include zero terminator, if one is present.
    727         void name(const Ch *name, std::size_t size)
     727        void name(const Ch *p_name, std::size_t size)
    728728        {
    729             m_name = const_cast<Ch *>(name);
     729            m_name = const_cast<Ch *>(p_name);
    730730            m_name_size = size;
    731731        }
    732732
    733733        //! Sets name of node to a zero-terminated string.
    734734        //! See also \ref ownership_of_strings and xml_node::name(const Ch *, std::size_t).
    735735        //! \param name Name of node to set. Must be zero terminated.
    736         void name(const Ch *name)
     736        void name(const Ch *p_name)
    737737        {
    738             this->name(name, internal::measure(name));
     738            this->name(p_name, internal::measure(p_name));
    739739        }
    740740
    741741        //! Sets value of node to a non zero-terminated string.
     
    754754        //! If you want to manipulate data of elements using values, use parser flag rapidxml::parse_no_data_nodes to prevent creation of data nodes by the parser.
    755755        //! \param value value of node to set. Does not have to be zero terminated.
    756756        //! \param size Size of value, in characters. This does not include zero terminator, if one is present.
    757         void value(const Ch *value, std::size_t size)
     757        void value(const Ch *p_value, std::size_t size)
    758758        {
    759             m_value = const_cast<Ch *>(value);
     759            m_value = const_cast<Ch *>(p_value);
    760760            m_value_size = size;
    761761        }
    762762
    763763        //! Sets value of node to a zero-terminated string.
    764764        //! See also \ref ownership_of_strings and xml_node::value(const Ch *, std::size_t).
    765765        //! \param value Vame of node to set. Must be zero terminated.
    766         void value(const Ch *value)
     766        void value(const Ch *p_value)
    767767        {
    768             this->value(value, internal::measure(value));
     768            this->value(p_value, internal::measure(p_value));
    769769        }
    770770
    771771        ///////////////////////////////////////////////////////////////////////////
     
    839839        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    840840        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    841841        //! \return Pointer to found attribute, or 0 if not found.
    842         xml_attribute<Ch> *previous_attribute(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     842        xml_attribute<Ch> *previous_attribute(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    843843        {
    844             if (name)
     844            if (p_name)
    845845            {
    846                 if (name_size == 0)
    847                     name_size = internal::measure(name);
     846                if (p_name_size == 0)
     847                    p_name_size = internal::measure(p_name);
    848848                for (xml_attribute<Ch> *attribute = m_prev_attribute; attribute; attribute = attribute->m_prev_attribute)
    849                     if (internal::compare(attribute->name(), attribute->name_size(), name, name_size, case_sensitive))
     849                    if (internal::compare(attribute->name(), attribute->name_size(), p_name, p_name_size, case_sensitive))
    850850                        return attribute;
    851851                return 0;
    852852            }
     
    859859        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    860860        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    861861        //! \return Pointer to found attribute, or 0 if not found.
    862         xml_attribute<Ch> *next_attribute(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     862        xml_attribute<Ch> *next_attribute(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    863863        {
    864             if (name)
     864            if (p_name)
    865865            {
    866                 if (name_size == 0)
    867                     name_size = internal::measure(name);
     866                if (p_name_size == 0)
     867                    p_name_size = internal::measure(p_name);
    868868                for (xml_attribute<Ch> *attribute = m_next_attribute; attribute; attribute = attribute->m_next_attribute)
    869                     if (internal::compare(attribute->name(), attribute->name_size(), name, name_size, case_sensitive))
     869                    if (internal::compare(attribute->name(), attribute->name_size(), p_name, p_name_size, case_sensitive))
    870870                        return attribute;
    871871                return 0;
    872872            }
     
    904904        //! Constructs an empty node with the specified type.
    905905        //! Consider using memory_pool of appropriate document to allocate nodes manually.
    906906        //! \param type Type of node to construct.
    907         xml_node(node_type type)
    908             : m_type(type)
     907        xml_node(node_type p_type)
     908            : m_type(p_type)
    909909            , m_first_node(0)
    910910            , m_first_attribute(0)
    911911        {
     
    939939        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    940940        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    941941        //! \return Pointer to found child, or 0 if not found.
    942         xml_node<Ch> *first_node(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     942        xml_node<Ch> *first_node(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    943943        {
    944             if (name)
     944            if (p_name)
    945945            {
    946                 if (name_size == 0)
    947                     name_size = internal::measure(name);
     946                if (p_name_size == 0)
     947                    p_name_size = internal::measure(p_name);
    948948                for (xml_node<Ch> *child = m_first_node; child; child = child->next_sibling())
    949                     if (internal::compare(child->name(), child->name_size(), name, name_size, case_sensitive))
     949                    if (internal::compare(child->name(), child->name_size(), p_name, p_name_size, case_sensitive))
    950950                        return child;
    951951                return 0;
    952952            }
     
    961961        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    962962        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    963963        //! \return Pointer to found child, or 0 if not found.
    964         xml_node<Ch> *last_node(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     964        xml_node<Ch> *last_node(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    965965        {
    966966            assert(m_first_node);  // Cannot query for last child if node has no children
    967             if (name)
     967            if (p_name)
    968968            {
    969                 if (name_size == 0)
    970                     name_size = internal::measure(name);
     969                if (p_name_size == 0)
     970                    p_name_size = internal::measure(p_name);
    971971                for (xml_node<Ch> *child = m_last_node; child; child = child->previous_sibling())
    972                     if (internal::compare(child->name(), child->name_size(), name, name_size, case_sensitive))
     972                    if (internal::compare(child->name(), child->name_size(), p_name, p_name_size, case_sensitive))
    973973                        return child;
    974974                return 0;
    975975            }
     
    984984        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    985985        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    986986        //! \return Pointer to found sibling, or 0 if not found.
    987         xml_node<Ch> *previous_sibling(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     987        xml_node<Ch> *previous_sibling(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    988988        {
    989989            assert(this->m_parent);     // Cannot query for siblings if node has no parent
    990             if (name)
     990            if (p_name)
    991991            {
    992                 if (name_size == 0)
    993                     name_size = internal::measure(name);
     992                if (p_name_size == 0)
     993                    p_name_size = internal::measure(p_name);
    994994                for (xml_node<Ch> *sibling = m_prev_sibling; sibling; sibling = sibling->m_prev_sibling)
    995                     if (internal::compare(sibling->name(), sibling->name_size(), name, name_size, case_sensitive))
     995                    if (internal::compare(sibling->name(), sibling->name_size(), p_name, p_name_size, case_sensitive))
    996996                        return sibling;
    997997                return 0;
    998998            }
     
    10071007        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    10081008        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    10091009        //! \return Pointer to found sibling, or 0 if not found.
    1010         xml_node<Ch> *next_sibling(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     1010        xml_node<Ch> *next_sibling(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    10111011        {
    10121012            assert(this->m_parent);     // Cannot query for siblings if node has no parent
    1013             if (name)
     1013            if (p_name)
    10141014            {
    1015                 if (name_size == 0)
    1016                     name_size = internal::measure(name);
     1015                if (p_name_size == 0)
     1016                    p_name_size = internal::measure(p_name);
    10171017                for (xml_node<Ch> *sibling = m_next_sibling; sibling; sibling = sibling->m_next_sibling)
    1018                     if (internal::compare(sibling->name(), sibling->name_size(), name, name_size, case_sensitive))
     1018                    if (internal::compare(sibling->name(), sibling->name_size(), p_name, p_name_size, case_sensitive))
    10191019                        return sibling;
    10201020                return 0;
    10211021            }
     
    10281028        //! \param name_size Size of name, in characters, or 0 to have size calculated automatically from string
    10291029        //! \param case_sensitive Should name comparison be case-sensitive; non case-sensitive comparison works properly only for ASCII characters
    10301030        //! \return Pointer to found attribute, or 0 if not found.
    1031         xml_attribute<Ch> *first_attribute(const Ch *name = 0, std::size_t name_size = 0, bool case_sensitive = true) const
     1031        xml_attribute<Ch> *first_attribute(const Ch *p_name = 0, std::size_t p_name_size = 0, bool case_sensitive = true) const
    10321032        {
    1033             if (name)
     1033            if (p_name)
    10341034            {
    1035                 if (name_size == 0)
    1036                     name_size = internal::measure(name);
     1035                if (p_name_size == 0)
     1036                    p_name_size = internal::measure(p_name);
    10371037                for (xml_attribute<Ch> *attribute = m_first_attribute; attribute; attribute = attribute->m_next_attribute)
    1038                     if (internal::compare(attribute->name(), attribute->name_size(), name, name_size, case_sensitive))
     1038                    if (internal::compare(attribute->name(), attribute->name_size(), p_name, p_name_size, case_sensitive))
    10391039                        return attribute;
    10401040                return 0;
    10411041            }
     
    10681068   
    10691069        //! Sets type of node.
    10701070        //! \param type Type of node to set.
    1071         void type(node_type type)
     1071        void type(node_type p_type)
    10721072        {
    1073             m_type = type;
     1073            m_type = p_type;
    10741074        }
    10751075
    10761076        ///////////////////////////////////////////////////////////////////////////
     
    17931793            }
    17941794
    17951795            // Remember value start
    1796             Ch *value = text;
     1796            Ch *text_value = text;
    17971797
    17981798            // Skip until end of comment
    17991799            while (text[0] != Ch('-') || text[1] != Ch('-') || text[2] != Ch('>'))
     
    18051805
    18061806            // Create comment node
    18071807            xml_node<Ch> *comment = this->allocate_node(node_comment);
    1808             comment->value(value, text - value);
     1808            comment->value(text_value, text - text_value);
    18091809           
    18101810            // Place zero terminator after comment value
    18111811            if (!(Flags & parse_no_string_terminators))
     
    18201820        xml_node<Ch> *parse_doctype(Ch *&text)
    18211821        {
    18221822            // Remember value start
    1823             Ch *value = text;
     1823            Ch *text_value = text;
    18241824
    18251825            // Skip to >
    18261826            while (*text != Ch('>'))
     
    18421842                            case Ch('['): ++depth; break;
    18431843                            case Ch(']'): --depth; break;
    18441844                            case 0: RAPIDXML_PARSE_ERROR("unexpected end of data", text);
     1845                                                                                                                default: break;
    18451846                        }
    18461847                        ++text;
    18471848                    }
     
    18641865            {
    18651866                // Create a new doctype node
    18661867                xml_node<Ch> *doctype = this->allocate_node(node_doctype);
    1867                 doctype->value(value, text - value);
     1868                doctype->value(text_value, text - text_value);
    18681869               
    18691870                // Place zero terminator after value
    18701871                if (!(Flags & parse_no_string_terminators))
     
    18921893                xml_node<Ch> *pi = this->allocate_node(node_pi);
    18931894
    18941895                // Extract PI target name
    1895                 Ch *name = text;
     1896                Ch *text_name = text;
    18961897                skip<node_name_pred, Flags>(text);
    1897                 if (text == name)
     1898                if (text == text_name)
    18981899                    RAPIDXML_PARSE_ERROR("expected PI target", text);
    1899                 pi->name(name, text - name);
     1900                pi->name(text_name, text - text_name);
    19001901               
    19011902                // Skip whitespace between pi target and pi
    19021903                skip<whitespace_pred, Flags>(text);
    19031904
    19041905                // Remember start of pi
    1905                 Ch *value = text;
     1906                Ch *text_value = text;
    19061907               
    19071908                // Skip to '?>'
    19081909                while (text[0] != Ch('?') || text[1] != Ch('>'))
     
    19131914                }
    19141915
    19151916                // Set pi value (verbatim, no entity expansion or whitespace normalization)
    1916                 pi->value(value, text - value);     
     1917                pi->value(text_value, text - text_value);     
    19171918               
    19181919                // Place zero terminator after name and value
    19191920                if (!(Flags & parse_no_string_terminators))
     
    19501951                text = contents_start;     
    19511952           
    19521953            // Skip until end of data
    1953             Ch *value = text, *end;
     1954            Ch *text_value = text, *end;
    19541955            if (Flags & parse_normalize_whitespace)
    19551956                end = skip_and_expand_character_refs<text_pred, text_pure_with_ws_pred, Flags>(text);   
    19561957            else
     
    19781979            if (!(Flags & parse_no_data_nodes))
    19791980            {
    19801981                xml_node<Ch> *data = this->allocate_node(node_data);
    1981                 data->value(value, end - value);
     1982                data->value(text_value, end - text_value);
    19821983                node->append_node(data);
    19831984            }
    19841985
    19851986            // Add data to parent node if no data exists yet
    19861987            if (!(Flags & parse_no_element_values))
    19871988                if (*node->value() == Ch('\0'))
    1988                     node->value(value, end - value);
     1989                    node->value(text_value, end - text_value);
    19891990
    19901991            // Place zero terminator after value
    19911992            if (!(Flags & parse_no_string_terminators))
     
    20182019            }
    20192020
    20202021            // Skip until end of cdata
    2021             Ch *value = text;
     2022            Ch *text_value = text;
    20222023            while (text[0] != Ch(']') || text[1] != Ch(']') || text[2] != Ch('>'))
    20232024            {
    20242025                if (!text[0])
     
    20282029
    20292030            // Create new cdata node
    20302031            xml_node<Ch> *cdata = this->allocate_node(node_cdata);
    2031             cdata->value(value, text - value);
     2032            cdata->value(text_value, text - text_value);
    20322033
    20332034            // Place zero terminator after value
    20342035            if (!(Flags & parse_no_string_terminators))
     
    20462047            xml_node<Ch> *element = this->allocate_node(node_element);
    20472048
    20482049            // Extract element name
    2049             Ch *name = text;
     2050            Ch *text_name = text;
    20502051            skip<node_name_pred, Flags>(text);
    2051             if (text == name)
     2052            if (text == text_name)
    20522053                RAPIDXML_PARSE_ERROR("expected element name", text);
    2053             element->name(name, text - name);
     2054            element->name(text_name, text - text_name);
    20542055           
    20552056            // Skip whitespace between element name and attributes or >
    20562057            skip<whitespace_pred, Flags>(text);
     
    21512152                        text += 9;      // skip '!DOCTYPE '
    21522153                        return parse_doctype<Flags>(text);
    21532154                    }
     2155                                                                default: break;
    21542156
    21552157                }   // switch
    21562158
     
    22472249            while (attribute_name_pred::test(*text))
    22482250            {
    22492251                // Extract attribute name
    2250                 Ch *name = text;
     2252                Ch *text_name = text;
    22512253                ++text;     // Skip first character of attribute name
    22522254                skip<attribute_name_pred, Flags>(text);
    2253                 if (text == name)
    2254                     RAPIDXML_PARSE_ERROR("expected attribute name", name);
     2255                if (text == text_name)
     2256                    RAPIDXML_PARSE_ERROR("expected attribute name", text_name);
    22552257
    22562258                // Create new attribute
    22572259                xml_attribute<Ch> *attribute = this->allocate_attribute();
    2258                 attribute->name(name, text - name);
     2260                attribute->name(text_name, text - text_name);
    22592261                node->append_attribute(attribute);
    22602262
    22612263                // Skip whitespace after attribute name
     
    22802282                ++text;
    22812283
    22822284                // Extract attribute value and expand char refs in it
    2283                 Ch *value = text, *end;
     2285                Ch *text_value = text, *end;
    22842286                const int AttFlags = Flags & ~parse_normalize_whitespace;   // No whitespace normalization in attributes
    22852287                if (quote == Ch('\''))
    22862288                    end = skip_and_expand_character_refs<attribute_value_pred<Ch('\'')>, attribute_value_pure_pred<Ch('\'')>, AttFlags>(text);
     
    22882290                    end = skip_and_expand_character_refs<attribute_value_pred<Ch('"')>, attribute_value_pure_pred<Ch('"')>, AttFlags>(text);
    22892291               
    22902292                // Set attribute value
    2291                 attribute->value(value, end - value);
     2293                attribute->value(text_value, end - text_value);
    22922294               
    22932295                // Make sure that end quote is present
    22942296                if (*text != quote)
  • boost/property_tree/detail/ptree_implementation.hpp

     
    161161    }
    162162
    163163    template<class K, class D, class C> inline
    164     basic_ptree<K, D, C>::basic_ptree(const data_type &data)
    165         : m_data(data), m_children(new typename subs::base_container)
     164    basic_ptree<K, D, C>::basic_ptree(const data_type &p_data)
     165        : m_data(p_data), m_children(new typename subs::base_container)
    166166    {
    167167    }
    168168
  • boost/property_tree/detail/xml_parser_error.hpp

     
    2020    class xml_parser_error: public file_parser_error
    2121    {
    2222    public:
    23         xml_parser_error(const std::string &message,
    24                          const std::string &filename,
    25                          unsigned long line):
    26             file_parser_error(message, filename, line)
     23        xml_parser_error(const std::string &p_message,
     24                         const std::string &p_filename,
     25                         unsigned long p_line):
     26            file_parser_error(p_message, p_filename, p_line)
    2727        {
    2828        }
    2929    };
  • boost/property_tree/detail/xml_parser_writer_settings.hpp

     
    3535    class xml_writer_settings
    3636    {
    3737    public:
    38         xml_writer_settings(Ch indent_char = Ch(' '),
    39                 typename std::basic_string<Ch>::size_type indent_count = 0,
    40                 const std::basic_string<Ch> &encoding = widen<Ch>("utf-8"))
    41             : indent_char(indent_char)
    42             , indent_count(indent_count)
    43             , encoding(encoding)
     38        xml_writer_settings(Ch p_indent_char = Ch(' '),
     39                typename std::basic_string<Ch>::size_type p_indent_count = 0,
     40                const std::basic_string<Ch> &p_encoding = widen<Ch>("utf-8"))
     41            : indent_char(p_indent_char)
     42            , indent_count(p_indent_count)
     43            , encoding(p_encoding)
    4444        {
    4545        }
    4646
  • boost/exception/exception.hpp

     
    411411
    412412            void
    413413            rethrow() const
     414#if BOOST_WORKAROUND(__GNUC__, >= 3)
     415                                                __attribute__((noreturn))
     416#endif
    414417                {
    415418                throw*this;
    416419                }
  • boost/multi_index_container.hpp

     
    360360    IteratorType it
    361361    BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(int,N))
    362362  {
    363     typedef typename nth_index<N>::type index;
     363    typedef typename nth_index<N>::type n_index;
    364364
    365365#if !defined(__SUNPRO_CC)||!(__SUNPRO_CC<0x580) /* fails in Sun C++ 5.7 */
    366366    BOOST_STATIC_ASSERT(
     
    371371    BOOST_MULTI_INDEX_CHECK_IS_OWNER(
    372372      it,static_cast<typename IteratorType::container_type&>(*this));
    373373
    374     return index::make_iterator(static_cast<node_type*>(it.get_node()));
     374    return n_index::make_iterator(static_cast<node_type*>(it.get_node()));
    375375  }
    376376
    377377  template<int N,typename IteratorType>
     
    379379    IteratorType it
    380380    BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(int,N))const
    381381  {
    382     typedef typename nth_index<N>::type index;
     382    typedef typename nth_index<N>::type n_index;
    383383
    384384#if !defined(__SUNPRO_CC)||!(__SUNPRO_CC<0x580) /* fails in Sun C++ 5.7 */
    385385    BOOST_STATIC_ASSERT((
     
    390390    BOOST_MULTI_INDEX_CHECK_VALID_ITERATOR(it);
    391391    BOOST_MULTI_INDEX_CHECK_IS_OWNER(
    392392      it,static_cast<const typename IteratorType::container_type&>(*this));
    393     return index::make_iterator(static_cast<node_type*>(it.get_node()));
     393    return n_index::make_iterator(static_cast<node_type*>(it.get_node()));
    394394  }
    395395#endif
    396396
     
    414414    IteratorType it
    415415    BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Tag))
    416416  {
    417     typedef typename index<Tag>::type index;
     417    typedef typename index<Tag>::type tag_index;
    418418
    419419#if !defined(__SUNPRO_CC)||!(__SUNPRO_CC<0x580) /* fails in Sun C++ 5.7 */
    420420    BOOST_STATIC_ASSERT(
     
    424424    BOOST_MULTI_INDEX_CHECK_VALID_ITERATOR(it);
    425425    BOOST_MULTI_INDEX_CHECK_IS_OWNER(
    426426      it,static_cast<typename IteratorType::container_type&>(*this));
    427     return index::make_iterator(static_cast<node_type*>(it.get_node()));
     427    return tag_index::make_iterator(static_cast<node_type*>(it.get_node()));
    428428  }
    429429
    430430  template<typename Tag,typename IteratorType>
     
    432432    IteratorType it
    433433    BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(Tag))const
    434434  {
    435     typedef typename index<Tag>::type index;
     435    typedef typename index<Tag>::type tag_index;
    436436
    437437#if !defined(__SUNPRO_CC)||!(__SUNPRO_CC<0x580) /* fails in Sun C++ 5.7 */
    438438    BOOST_STATIC_ASSERT((
     
    443443    BOOST_MULTI_INDEX_CHECK_VALID_ITERATOR(it);
    444444    BOOST_MULTI_INDEX_CHECK_IS_OWNER(
    445445      it,static_cast<const typename IteratorType::container_type&>(*this));
    446     return index::make_iterator(static_cast<node_type*>(it.get_node()));
     446    return tag_index::make_iterator(static_cast<node_type*>(it.get_node()));
    447447  }
    448448#endif
    449449
  • boost/test/utils/lazy_ostream.hpp

     
    4545    // actual printing interface; to be accessed only by this class and children
    4646    virtual std::ostream&   operator()( std::ostream& ostr ) const                  { return ostr; }
    4747protected:
    48     explicit                lazy_ostream( bool empty = true ) : m_empty( empty )    {}
     48    explicit                lazy_ostream( bool p_empty = true ) : m_empty( p_empty )    {}
    4949
    5050    // protected destructor to make sure right one is called
    5151#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))