Ticket #3031: boost-00.patch

File boost-00.patch, 2.5 KB (added by gerickson@…, 13 years ago)

Patch for Boost::Accumulators -Wshadow and -Wunused Errors

  • boost/accumulators/framework/accumulator_set.hpp

    a b  
    4242    template<typename Args>
    4343    struct accumulator_visitor
    4444    {
    45         explicit accumulator_visitor(Args const &args)
    46           : args(args)
     45        explicit accumulator_visitor(Args const &in_args)
     46          : args(in_args)
    4747        {
    4848        }
    4949
  • boost/accumulators/framework/accumulators/droppable_accumulator.hpp

    a b  
    218218    private:
    219219        with_cached_result &operator =(with_cached_result const &);
    220220
    221         void set(result_type const &result)
     221        void set(result_type const &in_result)
    222222        {
    223             ::new(this->cache.address()) result_type(result);
     223            ::new(this->cache.address()) result_type(in_result);
    224224        }
    225225
    226226        result_type const &get() const
  • boost/accumulators/statistics/rolling_mean.hpp

    a b  
    6969//
    7070namespace extract
    7171{
    72     extractor<tag::rolling_mean> const rolling_mean = {};
     72    extern extractor<tag::rolling_mean> const rolling_mean = {};
    7373}
    7474
    7575using extract::rolling_mean;
  • boost/accumulators/statistics/rolling_window.hpp

    a b  
    153153//
    154154namespace extract
    155155{
    156     extractor<tag::rolling_window_plus1> const rolling_window_plus1 = {};
    157     extractor<tag::rolling_window> const rolling_window = {};
     156    extern extractor<tag::rolling_window_plus1> const rolling_window_plus1 = {};
     157    extern extractor<tag::rolling_window> const rolling_window = {};
    158158}
    159159
    160160using extract::rolling_window_plus1;
  • boost/accumulators/statistics_fwd.hpp

    a b  
    3030}
    3131namespace extract
    3232{
    33     extractor<tag::quantile> const quantile = {};
     33    extern extractor<tag::quantile> const quantile = {};
    3434}
    3535using extract::quantile;
    3636
     
    4646}
    4747namespace extract
    4848{
    49     extractor<tag::tail_mean> const tail_mean = {};
     49    extern extractor<tag::tail_mean> const tail_mean = {};
    5050}
    5151using extract::tail_mean;
    5252