| 283 | // ---------------------------------------------------------------------------------------- |
| 284 | |
| 285 | inline void serialize ( |
| 286 | const rectangle& item, |
| 287 | std::ostream& out |
| 288 | ) |
| 289 | { |
| 290 | try |
| 291 | { |
| 292 | serialize(item.left(),out); |
| 293 | serialize(item.top(),out); |
| 294 | serialize(item.right(),out); |
| 295 | serialize(item.bottom(),out); |
| 296 | } |
| 297 | catch (serialization_error& e) |
| 298 | { |
| 299 | throw serialization_error(e.info + "\n while serializing an object of type rectangle"); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | inline void deserialize ( |
| 304 | rectangle& item, |
nothing calls this directly
no test coverage detected