Skip to content

Commit

Permalink
Fixed static definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Nov 10, 2024
1 parent 907d38f commit 586ae0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/etl/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;

Expand Down Expand Up @@ -261,7 +262,7 @@ namespace etl
};

template <size_t MAX_SIZE_>
ETL_CONSTANT size_t string<MAX_SIZE_>::MAX_SIZE;
ETL_CONSTANT typename string<MAX_SIZE_>::size_type string<MAX_SIZE_>::MAX_SIZE;

//***************************************************************************
/// A string implementation that uses a fixed size external buffer.
Expand Down

0 comments on commit 586ae0c

Please sign in to comment.