Changeset 1088 for trunk/yat/statistics


Ignore:
Timestamp:
Feb 14, 2008, 3:26:19 PM (13 years ago)
Author:
Peter
Message:

Closes #247. Removed IteratorWeighted? iterators over weighted container instead can use Iterator with a special Policy.

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

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

    r1043 r1088  
    149149  {
    150150    for ( ; first1 != last1; ++first1, ++first2) {
    151       ap.add(utility::iterator_traits_data(first1),
    152              utility::iterator_traits_data(first2),
    153              utility::iterator_traits_weight(first1),
    154              utility::iterator_traits_weight(first2));
     151      ap.add(utility::iterator_traits<Iter1>().data(first1),
     152             utility::iterator_traits<Iter2>().data(first2),
     153             utility::iterator_traits<Iter1>().weight(first1),
     154             utility::iterator_traits<Iter2>().weight(first2));
    155155    }
    156156  }
  • trunk/yat/statistics/AveragerWeighted.h

    r1043 r1088  
    218218  {
    219219    for ( ; first != last; ++first)
    220       a.add(utility::iterator_traits_data(first),
    221             utility::iterator_traits_weight(first));
     220      a.add(utility::iterator_traits<Iter>().data(first),
     221            utility::iterator_traits<Iter>().weight(first));
    222222  }
    223223
Note: See TracChangeset for help on using the changeset viewer.