From: Matt Benjamin Date: Tue, 23 Aug 2016 19:57:06 +0000 (-0400) Subject: ceph_timer: prefer using directive to typedef X-Git-Tag: v10.2.4~98^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0135da74e2a08fccc2e2da9f1b7e55478bf79157;p=ceph.git ceph_timer: prefer using directive to typedef This change replaces the existing member-hook typedef as well as the new set-type typedefs, so committed separately. Signed-off-by: Matt Benjamin (cherry picked from commit f7d4d418658d2091652033045abdb4bfbeb637aa) --- diff --git a/src/common/ceph_timer.h b/src/common/ceph_timer.h index 97b0dc96865b..6323be66ab44 100644 --- a/src/common/ceph_timer.h +++ b/src/common/ceph_timer.h @@ -58,7 +58,7 @@ namespace ceph { template class timer { - typedef set_member_hook > sh; + using sh = set_member_hook >; struct event { typename TC::time_point t; @@ -89,17 +89,17 @@ namespace ceph { } }; - typedef set, - constant_time_size, - compare > schedule_type; + using schedule_type = set, + constant_time_size, + compare >; schedule_type schedule; - typedef set, - constant_time_size, - compare > event_set_type; + using event_set_type = set, + constant_time_size, + compare >; event_set_type events;