From de58bfbb7f7302244ba7d3c902234b746f362068 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Oct 2020 11:23:55 +0200 Subject: [PATCH] util/TemplateString: use std::size_t --- src/util/TemplateString.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/util/TemplateString.hxx b/src/util/TemplateString.hxx index 0ea13beeb..fe482d066 100644 --- a/src/util/TemplateString.hxx +++ b/src/util/TemplateString.hxx @@ -40,7 +40,7 @@ namespace TemplateString { template struct Construct { static constexpr char value[] = {_value..., 0}; - static constexpr size_t size = sizeof...(_value); + static constexpr std::size_t size = sizeof...(_value); }; template @@ -62,14 +62,14 @@ struct CharAsString : Construct {}; * as variadic arguments. */ template class F, - const char *src, size_t length, size_t i, + const char *src, std::size_t length, std::size_t i, char... _value> struct VariadicChars : VariadicChars { static_assert(length > 0, "Wrong length"); }; template class F, - const char *src, size_t length, + const char *src, std::size_t length, char... _value> struct VariadicChars : F<_value...> {}; @@ -77,7 +77,7 @@ struct VariadicChars : F<_value...> {}; * Like #VariadicChars, but pass an additional argument to #F. */ template class F, typename Arg, - const char *src, size_t length, size_t i, + const char *src, std::size_t length, std::size_t i, char... _value> struct VariadicChars1 : VariadicChars1 { @@ -85,11 +85,11 @@ struct VariadicChars1 : VariadicChars1 class F, typename Arg, - const char *src, size_t length, + const char *src, std::size_t length, char... _value> struct VariadicChars1 : F {}; -template +template struct _BuildString : VariadicChars {};