From 586ae0cdfff84bc9dbdd26406d22f5e7be77897c Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 10 Nov 2024 10:17:20 +0000 Subject: [PATCH] Fixed static definition --- include/etl/string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/etl/string.h b/include/etl/string.h index 1fbc19d2..50b3bf62 100644 --- a/include/etl/string.h +++ b/include/etl/string.h @@ -72,6 +72,7 @@ namespace etl typedef istring interface_type; typedef istring::value_type value_type; + typedef istring::size_type size_type; static ETL_CONSTANT size_t MAX_SIZE = MAX_SIZE_; @@ -261,7 +262,7 @@ namespace etl }; template - ETL_CONSTANT size_t string::MAX_SIZE; + ETL_CONSTANT typename string::size_type string::MAX_SIZE; //*************************************************************************** /// A string implementation that uses a fixed size external buffer.