| 386 | |
| 387 | template <std::integral Rep, typename Period> |
| 388 | void round_trip_decode(std::chrono::duration<Rep, Period>& d, |
| 389 | bufferlist::const_iterator& p) { |
| 390 | Rep r; |
| 391 | decode(r, p); |
| 392 | d = std::chrono::duration<Rep, Period>(r); |
| 393 | } |
| 394 | |
| 395 | template <typename Clock, typename Duration> |
| 396 | void round_trip_encode(const std::chrono::time_point<Clock, Duration>& t, |