| 134 | // ---------------------------------------------------------------------------------------- |
| 135 | |
| 136 | inline void serialize ( |
| 137 | const sample_pair& item, |
| 138 | std::ostream& out |
| 139 | ) |
| 140 | { |
| 141 | try |
| 142 | { |
| 143 | serialize(item.index1(),out); |
| 144 | serialize(item.index2(),out); |
| 145 | serialize(item.distance(),out); |
| 146 | } |
| 147 | catch (serialization_error& e) |
| 148 | { |
| 149 | throw serialization_error(e.info + "\n while serializing object of type sample_pair"); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | inline void deserialize ( |
| 154 | sample_pair& item, |
nothing calls this directly
no test coverage detected