]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/config: specialize the settings for time duration
authorKefu Chai <kchai@redhat.com>
Tue, 13 Feb 2018 08:36:35 +0000 (16:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 9 Mar 2018 05:01:05 +0000 (13:01 +0800)
commitc3dd17fd87e11f296e4926ed754d2f9c4e326b10
tree10defb5ed5468d425e9bb31c8b07601ccd88171d
parenta5309c8fd2c125b82cf422efd9bcb3536b28286a
common/config: specialize the settings for time duration

because of the ADL, boost::detail::variant::printer is not able to find
operator<<(ostream&, chrono::seconds) even the latter is defined. so we
need to define our own printer. and print_value() function, so it can be
used out of the compilation unit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/config.cc
src/common/options.cc
src/common/options.h
src/mon/ConfigMonitor.cc
src/test/common/test_config.cc