| 1076 | |
| 1077 | template<typename T> |
| 1078 | inline void serialize ( |
| 1079 | const vector<T,3>& item, |
| 1080 | std::ostream& out |
| 1081 | ) |
| 1082 | { |
| 1083 | try |
| 1084 | { |
| 1085 | serialize(item.x(),out); |
| 1086 | serialize(item.y(),out); |
| 1087 | serialize(item.z(),out); |
| 1088 | } |
| 1089 | catch (serialization_error& e) |
| 1090 | { |
| 1091 | throw serialization_error(e.info + "\n while serializing object of type vector"); |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | template<typename T> |
| 1096 | inline void deserialize ( |