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.