Ticket #4365: boost_signal_gcc_warning_cleanup.diff

File boost_signal_gcc_warning_cleanup.diff, 3.3 KB (added by tatu.kilappa@…, 12 years ago)

fixes for boost/signals

  • boost/signals/signal_template.hpp

     
    345345#endif // BOOST_SIGNALS_NUM_ARGS > 0
    346346    call_bound_slot f(&args);
    347347
    348     typedef typename call_bound_slot::result_type result_type;
    349     optional<result_type> cache;
     348    typedef typename call_bound_slot::result_type call_result_type;
     349    optional<call_result_type> cache;
    350350    // Let the combiner call the slots via a pair of input iterators
    351351    return combiner()(slot_call_iterator(notification.impl->slots_.begin(),
    352352                                         impl->slots_.end(), f, cache),
     
    386386
    387387    call_bound_slot f(&args);
    388388
    389     typedef typename call_bound_slot::result_type result_type;
    390     optional<result_type> cache;
     389    typedef typename call_bound_slot::result_type call_result_type;
     390    optional<call_result_type> cache;
    391391
    392392    // Let the combiner call the slots via a pair of input iterators
    393393    return combiner()(slot_call_iterator(notification.impl->slots_.begin(),
  • boost/signals/detail/named_slot_map.hpp

     
    3232 public:
    3333  enum storage_kind { sk_empty, sk_front, sk_back, sk_group };
    3434
    35   stored_group(storage_kind kind = sk_empty) : kind(kind), group() { }
     35  stored_group(storage_kind p_kind = sk_empty) : kind(p_kind), group() { }
    3636
    3737  template<typename T>
    38   stored_group(const T& group) : kind(sk_group), group(new T(group)) { }
     38  stored_group(const T& p_group) : kind(sk_group), group(new T(p_group)) { }
    3939
    4040  bool is_front() const { return kind == sk_front; }
    4141  bool is_back() const { return kind == sk_back; }
     
    133133#endif
    134134
    135135private:
    136   named_slot_map_iterator(group_iterator group, group_iterator last) :
    137     group(group), last_group(last), slot_assigned(false)
     136  named_slot_map_iterator(group_iterator giter, group_iterator last) :
     137    group(giter), last_group(last), slot_assigned(false)
    138138  { init_next_group(); }
    139   named_slot_map_iterator(group_iterator group, group_iterator last,
     139  named_slot_map_iterator(group_iterator giter, group_iterator last,
    140140                          slot_pair_iterator slot) :
    141     group(group), last_group(last), slot_(slot), slot_assigned(true)
     141    group(giter), last_group(last), slot_(slot), slot_assigned(true)
    142142  { }
    143143
    144144  void init_next_group()
  • boost/signals/detail/slot_call_iterator.hpp

     
    4747        friend class iterator_core_access;
    4848
    4949      public:
    50         slot_call_iterator(Iterator iter_in, Iterator end_in, Function f,
     50        slot_call_iterator(Iterator iter_in, Iterator end_in, Function func,
    5151                           optional<result_type> &c)
    52           : iter(iter_in), end(end_in), f(f), cache(&c)
     52          : iter(iter_in), end(end_in), f(func), cache(&c)
    5353        {
    5454          iter = std::find_if(iter, end, is_callable());
    5555        }