| 593 | |
| 594 | template <typename T> |
| 595 | inline bool unpack_byte ( |
| 596 | T& ch, |
| 597 | std::istream& in |
| 598 | ) |
| 599 | { |
| 600 | std::streambuf* sbuf = in.rdbuf(); |
| 601 | int temp = sbuf->sbumpc(); |
| 602 | if (temp != EOF) |
| 603 | { |
| 604 | ch = static_cast<T>(temp); |
| 605 | return false; |
| 606 | } |
| 607 | else |
| 608 | { |
| 609 | return true; |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | #define USE_DEFAULT_BYTE_SERIALIZATION_FOR(T) \ |
| 614 | inline void serialize (const T& item,std::ostream& out) \ |
nothing calls this directly
no outgoing calls
no test coverage detected