mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Incorrect base class call to wstring instead of iwstring in constructor.
This commit is contained in:
parent
9160af0630
commit
dac6bda2f9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user