Changeset 1749


Ignore:
Timestamp:
Jan 26, 2009, 1:36:39 PM (12 years ago)
Author:
Peter
Message:

fixes #480

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1746 r1749  
    160160  utility::DataIterator<classifier::DataLookupWeighted1D::const_iterator>
    161161    data_iter(aw2.begin());
     162  test_random_access_iterator(data_iter, suite);
     163  test_random_access_iterator(weight_iterator(aw2.begin()), suite);
    162164  suite.add(*data_iter == 1.0);
    163165  suite.add(*data_iterator(aw2.begin()) == 1.0);
  • trunk/yat/utility/DataIterator.h

    r1487 r1749  
    4141    , Base                          // Base
    4242    , typename boost::remove_reference<typename iterator_traits<Base>::data_reference>::type
    43     , boost::forward_traversal_tag    // CategoryOrTraversal
     43    , boost::use_default    // CategoryOrTraversal
    4444    , typename iterator_traits<Base>::data_reference // Reference
    4545    >
  • trunk/yat/utility/WeightIterator.h

    r1487 r1749  
    3939    , Base                          // Base
    4040    , typename boost::remove_reference<typename iterator_traits<Base>::weight_reference>::type
    41     , boost::forward_traversal_tag    // CategoryOrTraversal
     41    , boost::use_default    // CategoryOrTraversal
    4242    , typename iterator_traits<Base>::weight_reference // Reference
    4343    >
Note: See TracChangeset for help on using the changeset viewer.