| 1094 | |
| 1095 | template<typename T> |
| 1096 | inline void deserialize ( |
| 1097 | vector<T,3>& item, |
| 1098 | std::istream& in |
| 1099 | ) |
| 1100 | { |
| 1101 | try |
| 1102 | { |
| 1103 | deserialize(item.x(),in); |
| 1104 | deserialize(item.y(),in); |
| 1105 | deserialize(item.z(),in); |
| 1106 | } |
| 1107 | catch (serialization_error& e) |
| 1108 | { |
| 1109 | item.x() = 0; |
| 1110 | item.y() = 0; |
| 1111 | item.z() = 0; |
| 1112 | throw serialization_error(e.info + "\n while deserializing object of type vector"); |
| 1113 | } |
| 1114 | } |
| 1115 | |
| 1116 | // ---------------------------------------------------------------------------------------- |
| 1117 |
no test coverage detected