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