Ignore:
Timestamp:
Sep 25, 2007, 4:26:33 PM (14 years ago)
Author:
Markus Ringnér
Message:

Minor modifications

File:
1 edited

Legend:

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

    r889 r891  
    4343  /// (templatized as Dist). It can also call separate implementations
    4444  /// for iterators to weighted and unweighted iterators based on the
    45   /// trait of the iterator (templatized as Iter).
     45  /// trait of the iterators (templatized as Iter1 and Iter2).
    4646  ///
    47   template <typename Iter, typename Dist>
    48   double vector_distance(Iter beg1, Iter end1, Iter beg2, const Dist& disttag)
     47  template <typename Iter1, typename Iter2, typename Dist>
     48  double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2, const Dist disttag)
    4949  {
    50     return vector_distance(beg1,end1,beg2,typename vector_distance_traits<Dist>::distance(),
    51                            typename std::iterator_traits<Iter>::iterator_category());
     50    return vector_distance(beg1,end1,beg2,
     51                           typename vector_distance_traits<Dist>::distance(),
     52                           typename std::iterator_traits<Iter1>::iterator_category());
    5253  }       
    5354 
     55  // Temporary function of where I end up when calling with a reference to distance_tag
     56  template <typename Iter1, typename Iter2>
     57  double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2,
     58                         const vector_distance_tag& disttag)
     59  {
     60    std::cout << "Hello" << std::endl;
     61    return 0;
     62  }       
     63
     64 
    5465}}} // of namespace statistics, yat, and theplu
    55    
     66
    5667#endif
Note: See TracChangeset for help on using the changeset viewer.