Changeset 1375


Ignore:
Timestamp:
Jul 16, 2008, 7:51:54 PM (13 years ago)
Author:
Peter
Message:

making types in DataIterator? more generic - refs #369

File:
1 edited

Legend:

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

    r1366 r1375  
    2626
    2727#include <boost/iterator/iterator_adaptor.hpp>
     28#include <boost/type_traits/remove_reference.hpp>
    2829
    2930namespace theplu {
     
    3940    DataIterator<Base>               // Derived
    4041    , Base                          // Base
    41     , double              // Value
     42    , boost::remove_reference<typename iterator_traits<Base>::data_reference>
    4243    , boost::forward_traversal_tag    // CategoryOrTraversal
    43     , double
     44    , typename iterator_traits<Base>::data_reference // Reference
    4445    >
    4546
     
    5758       \return data
    5859     */
    59     double operator*(void) const
     60    typename iterator_traits<Base>::data_reference operator*(void) const
    6061    { return iterator_traits<Base>().data(this->base()); }
    6162
Note: See TracChangeset for help on using the changeset viewer.