From: Matt Benjamin Date: Tue, 23 Aug 2016 19:57:06 +0000 (-0400) Subject: ceph_timer: prefer using directive to typedef X-Git-Tag: v11.0.1~354^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f7d4d418658d2091652033045abdb4bfbeb637aa;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 --- diff --git a/src/common/ceph_timer.h b/src/common/ceph_timer.h index 97b0dc96865..6323be66ab4 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;