From 13b04044e57e86ccc0058068ef514ae22b1a3728 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 2 Oct 2016 08:26:32 -0700 Subject: [PATCH] Add format_args::size_type --- fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 0ac3ce33..b0b1bc81 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -1483,6 +1483,8 @@ class format_args { void set_data(const internal::Arg *args) { args_ = args; } public: + typedef unsigned size_type; + format_args() : types_(0) {} template @@ -1492,7 +1494,7 @@ class format_args { } /** Returns the argument at specified index. */ - internal::Arg operator[](unsigned index) const { + internal::Arg operator[](size_type index) const { using internal::Arg; Arg arg; bool use_values = type(internal::MAX_PACKED_ARGS - 1) == Arg::NONE;