| 106 | namespace { |
| 107 | |
| 108 | template <class T, class U> T coerce(const U &x) { return x; } |
| 109 | template <> pn_uuid_t coerce(const uuid& x) { pn_uuid_t y; byte_copy(y, x); return y; } |
| 110 | template <> pn_decimal32_t coerce(const decimal32 &x) { pn_decimal32_t y; byte_copy(y, x); return y; } |
| 111 | template <> pn_decimal64_t coerce(const decimal64 &x) { pn_decimal64_t y; byte_copy(y, x); return y; } |