From 878b873c693fdd9c20f40cd1cf960653f4914213 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 21 Jun 2015 19:37:50 +0900 Subject: [PATCH] src: Use using instead of typedef --- src/http2.h | 2 +- src/shrpx_downstream_queue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http2.h b/src/http2.h index 5749dade..9b7bf94b 100644 --- a/src/http2.h +++ b/src/http2.h @@ -61,7 +61,7 @@ struct Header { bool no_index; }; -typedef std::vector
Headers; +using Headers = std::vector
; namespace http2 { diff --git a/src/shrpx_downstream_queue.h b/src/shrpx_downstream_queue.h index d327a05f..de06d33e 100644 --- a/src/shrpx_downstream_queue.h +++ b/src/shrpx_downstream_queue.h @@ -58,7 +58,7 @@ public: HostEntry(); }; - typedef std::map HostEntryMap; + using HostEntryMap = std::map; // conn_max_per_host == 0 means no limit for downstream connection. DownstreamQueue(size_t conn_max_per_host = 0, bool unified_host = true);