Ticket #4365: boost_signal_gcc_warning_cleanup.diff
File boost_signal_gcc_warning_cleanup.diff, 3.3 KB (added by , 12 years ago) |
---|
-
boost/signals/signal_template.hpp
345 345 #endif // BOOST_SIGNALS_NUM_ARGS > 0 346 346 call_bound_slot f(&args); 347 347 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; 350 350 // Let the combiner call the slots via a pair of input iterators 351 351 return combiner()(slot_call_iterator(notification.impl->slots_.begin(), 352 352 impl->slots_.end(), f, cache), … … 386 386 387 387 call_bound_slot f(&args); 388 388 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; 391 391 392 392 // Let the combiner call the slots via a pair of input iterators 393 393 return combiner()(slot_call_iterator(notification.impl->slots_.begin(), -
boost/signals/detail/named_slot_map.hpp
32 32 public: 33 33 enum storage_kind { sk_empty, sk_front, sk_back, sk_group }; 34 34 35 stored_group(storage_kind kind = sk_empty) : kind(kind), group() { }35 stored_group(storage_kind p_kind = sk_empty) : kind(p_kind), group() { } 36 36 37 37 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)) { } 39 39 40 40 bool is_front() const { return kind == sk_front; } 41 41 bool is_back() const { return kind == sk_back; } … … 133 133 #endif 134 134 135 135 private: 136 named_slot_map_iterator(group_iterator g roup, group_iterator last) :137 group(g roup), 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) 138 138 { init_next_group(); } 139 named_slot_map_iterator(group_iterator g roup, group_iterator last,139 named_slot_map_iterator(group_iterator giter, group_iterator last, 140 140 slot_pair_iterator slot) : 141 group(g roup), last_group(last), slot_(slot), slot_assigned(true)141 group(giter), last_group(last), slot_(slot), slot_assigned(true) 142 142 { } 143 143 144 144 void init_next_group() -
boost/signals/detail/slot_call_iterator.hpp
47 47 friend class iterator_core_access; 48 48 49 49 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, 51 51 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) 53 53 { 54 54 iter = std::find_if(iter, end, is_callable()); 55 55 }