Changeset 2122
- Timestamp:
- Dec 19, 2009, 3:30:55 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/data_weight_proxy_test.cc
r1538 r2122 2 2 3 3 /* 4 Copyright (C) 2008 Peter Johansson4 Copyright (C) 2008, 2009 Peter Johansson 5 5 6 6 This file is part of the yat library, http://dev.thep.lu.se/yat … … 76 76 suite.add(false); 77 77 } 78 if (holder() == holder()) 79 suite.add(true); 80 else 81 suite.add(false); 78 82 if (holder() != const_holder()) { 79 83 suite.add(false); 80 84 } 85 if (holder() == const_holder()) 86 suite.add(true); 87 else 88 suite.add(false); 81 89 82 90 suite.err() << "testing assignment\n"; -
trunk/yat/utility/DataWeightProxy.h
r2119 r2122 106 106 }; 107 107 108 109 /**110 \brief equality operator111 112 \relates DataWeightProxy113 */114 template<typename DataIterator, typename WeightIterator>115 bool operator==(const DataWeightProxy<DataIterator, WeightIterator>& lhs,116 const DataWeightProxy<DataIterator, WeightIterator>& rhs)117 {118 return lhs.data()==rhs.data() && lhs.weight()==rhs.weight();119 }120 121 108 }}} // of namespace utility, yat, and theplu 122 109
Note: See TracChangeset
for help on using the changeset viewer.