this change differs from the upstream commit
61fb24883e812c11016acea0654f6aef7ddab1f7
because it relied on the std::void_t template, which isn't available in
c++11. just add another explicit constructor for coarse_real_time as a workaround
Signed-off-by: Casey Bodley <cbodley@redhat.com>
ceph_timespec ts = real_clock::to_ceph_timespec(rt);
decode_timeval(&ts);
}
+ explicit utime_t(const ceph::coarse_real_time& crt) {
+ ceph_timespec ts = coarse_real_clock::to_ceph_timespec(crt);
+ decode_timeval(&ts);
+ }
utime_t(const struct timeval &v) {
set_from_timeval(&v);
}