| 312 | typename T |
| 313 | > |
| 314 | void serialize ( |
| 315 | const ramdump_t<const T>& item_, |
| 316 | std::ostream& out |
| 317 | ) |
| 318 | { |
| 319 | // Move the const from inside the ramdump_t template to outside so we can bind |
| 320 | // against a serialize() call that takes just a const ramdump_t<T>. Doing this |
| 321 | // saves you from needing to write multiple overloads of serialize() to handle |
| 322 | // these different const placement cases. |
| 323 | const auto temp = ramdump(const_cast<T&>(item_.item)); |
| 324 | serialize(temp, out); |
| 325 | } |
| 326 | |
| 327 | // ---------------------------------------------------------------------------------------- |
| 328 |
no test coverage detected