Skip to content

Commit ddef6a0

Browse files
committed
Fixed static definition
1 parent 297b7e6 commit ddef6a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/etl/string.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ namespace etl
7272
typedef istring interface_type;
7373

7474
typedef istring::value_type value_type;
75+
typedef istring::size_type size_type;
7576

7677
static ETL_CONSTANT size_t MAX_SIZE = MAX_SIZE_;
7778

@@ -261,7 +262,7 @@ namespace etl
261262
};
262263

263264
template <size_t MAX_SIZE_>
264-
ETL_CONSTANT size_t string<MAX_SIZE_>::MAX_SIZE;
265+
ETL_CONSTANT typename string<MAX_SIZE_>::size_type string<MAX_SIZE_>::MAX_SIZE;
265266

266267
//***************************************************************************
267268
/// A string implementation that uses a fixed size external buffer.

0 commit comments

Comments
 (0)