Ignore:
Timestamp:
Sep 12, 2008, 3:15:53 AM (13 years ago)
Author:
Peter
Message:

fixes #439

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/sort_index.cc

    r1491 r1492  
    4040  void sort_index(StrideIterator<double*> first,
    4141                  StrideIterator<double*> last,
    42                   std::vector<size_t>& sort_index)
     42                  std::vector<size_t>& result)
    4343  {
    44     // wont compile without namespace specification
    45     utility::sort_index(static_cast<StrideIterator<const double*> >(first),
    46                         static_cast<StrideIterator<const double*> >(last),
    47                         sort_index);
     44    sort_index(static_cast<StrideIterator<const double*> >(first),
     45               static_cast<StrideIterator<const double*> >(last),
     46               result);
    4847  }
    4948 
     
    5150  void sort_index(std::vector<double>::iterator first,
    5251                  std::vector<double>::iterator last,
    53                   std::vector<size_t>& sort_index)
     52                  std::vector<size_t>& result)
    5453  {
    55     utility::sort_index(static_cast<std::vector<double>::const_iterator>(first),
    56                         static_cast<std::vector<double>::const_iterator>(last),
    57                         sort_index);
     54    sort_index(static_cast<std::vector<double>::const_iterator>(first),
     55               static_cast<std::vector<double>::const_iterator>(last),
     56               result);
    5857  }
    5958
Note: See TracChangeset for help on using the changeset viewer.