Changeset 1047 for trunk/yat/utility


Ignore:
Timestamp:
Feb 7, 2008, 2:02:05 PM (14 years ago)
Author:
Peter
Message:

generalized a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/StrideIterator.h

    r1041 r1047  
    6363  {
    6464  public:
     65    typedef typename std::iterator_traits<Iter>::value_type value_type;
    6566    typedef typename std::iterator_traits<Iter>::difference_type difference_type;
    6667    typedef typename std::iterator_traits<Iter>::reference reference;
     
    7980    // Peter, this is ugly hack to provide iteartor to const_iterator
    8081    // for our gsl_iterators - solution? use Boost:iterator_adaptor
    81     operator StrideIterator<const double*>()
    82     { return StrideIterator<const double*>(base(), stride_); }
     82    operator StrideIterator<const value_type*>()
     83    { return StrideIterator<const value_type*>(base(), stride_); }
    8384
    8485    /**
Note: See TracChangeset for help on using the changeset viewer.