Ignore:
Timestamp:
Sep 29, 2007, 4:18:52 AM (14 years ago)
Author:
Peter
Message:

refactoring add function in Averagers, refs #246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AveragerPair.h

    r913 r914  
    177177  void add(AveragerPair& ap, Iter1 first1, Iter1 last1, Iter2 first2)
    178178  {
    179     add(ap, first1, last1, first2,
    180         typename utility::weighted_iterator_traits<Iter1>::type(),
    181         typename utility::weighted_iterator_traits<Iter2>::type());
    182   }
    183 
    184   // unweighted impl. (weighted version is not implemented and should
    185   // not compile)
    186   template <typename Iter1, typename Iter2>
    187   void add(AveragerPair& ap, Iter1 first1, Iter1 last1, Iter2 first2,
    188            utility::unweighted_type type1, utility::unweighted_type type2)
    189   {
     179    utility::check_iterator_is_unweighted(first1);
     180    utility::check_iterator_is_unweighted(first2);
    190181    for ( ; first1 != last1; ++first1, ++first2)
    191182      ap.add(*first1, *first2);
Note: See TracChangeset for help on using the changeset viewer.