From fc289930ee37a5bd34bf7198fc30948f455cc2f3 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Wed, 11 Nov 2015 20:48:42 -0800 Subject: [PATCH] Cast size_type for string_span ctor from container. --- include/string_span.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/string_span.h b/include/string_span.h index 68095fa..7194c85 100644 --- a/include/string_span.h +++ b/include/string_span.h @@ -138,7 +138,7 @@ basic_string_span ensure_z(T(&sz)[N]) { return ensure_z(&sz[0] template basic_string_span::type, dynamic_range> ensure_z(Cont& cont) { - return ensure_z(cont.data(), cont.length()); + return ensure_z(cont.data(), static_cast(cont.length())); } //