Ignore:
Timestamp:
Jul 16, 2008, 10:09:06 PM (13 years ago)
Author:
Peter
Message:

allow conversion in DataIterator? and WeightIterator?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1376 r1377  
    106106  suite.add(*data_iter3 == 1.0);
    107107
     108  // testing constness conversion
     109  std::vector<double>::const_iterator c_iter(stl_vec.begin());
     110  std::vector<double>::iterator iter(stl_vec.begin());
     111  suite.add(iter==c_iter);
     112  utility::DataIterator<std::vector<double>::const_iterator> 
     113    data_iter4(c_iter);
     114  utility::DataIterator<std::vector<double>::iterator> 
     115    data_iter5(iter);
     116  suite.add(data_iter2 == data_iter5);
     117  suite.add(data_iter4 == data_iter5);
     118
    108119  classifier::MatrixLookup ml(m);
    109120  classifier::DataLookup1D dl1(ml,0,true);
Note: See TracChangeset for help on using the changeset viewer.