Incorrect base class call to wstring instead of iwstring in constructor.

This commit is contained in:
John Wellbelove 2016-06-29 18:15:57 +01:00
parent 9160af0630
commit dac6bda2f9

View File

@ -84,7 +84,7 @@ namespace etl
///\param length The number of characters. Default = npos.
//*************************************************************************
wstring(const etl::wstring<MAX_SIZE_>& other, size_t position, size_t length = npos)
: wstring(reinterpret_cast<value_type*>(&buffer), MAX_SIZE)
: iwstring(reinterpret_cast<value_type*>(&buffer), MAX_SIZE)
{
ETL_ASSERT(position < other.size(), ETL_ERROR(string_out_of_bounds));
@ -187,4 +187,4 @@ namespace etl
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif
#endif