mirror of
https://github.com/ETLCPP/etl.git
synced 2026-07-01 06:48:44 +08:00
Merge remote-tracking branch 'origin/development' into feature/add_circle-ci_support
This commit is contained in:
parent
b8708722ae
commit
58805d76cc
@ -6,6 +6,7 @@ AppVeyor
|
||||

|
||||
[](https://www.codacy.com/manual/jwellbelove/etl?utm_source=github.com&utm_medium=referral&utm_content=ETLCPP/etl&utm_campaign=Badge_Grade)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[]()
|
||||
|
||||
**Motivation**
|
||||
|
||||
|
||||
@ -258,7 +258,7 @@ namespace etl
|
||||
template<const size_t MAX_SIZE>
|
||||
etl::string<MAX_SIZE - 1> make_string(const char (&text) [MAX_SIZE])
|
||||
{
|
||||
return etl::string<MAX_SIZE - 1>(text);
|
||||
return etl::string<MAX_SIZE - 1>(text, MAX_SIZE - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -258,7 +258,7 @@ namespace etl
|
||||
template<const size_t MAX_SIZE>
|
||||
etl::u16string<MAX_SIZE - 1> make_string(const char16_t (&text) [MAX_SIZE])
|
||||
{
|
||||
return etl::u16string<MAX_SIZE - 1>(text);
|
||||
return etl::u16string<MAX_SIZE - 1>(text, MAX_SIZE - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -258,7 +258,7 @@ namespace etl
|
||||
template<const size_t MAX_SIZE>
|
||||
etl::u32string<MAX_SIZE - 1> make_string(const char32_t (&text) [MAX_SIZE])
|
||||
{
|
||||
return etl::u32string<MAX_SIZE - 1>(text);
|
||||
return etl::u32string<MAX_SIZE - 1>(text, MAX_SIZE - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -259,7 +259,7 @@ namespace etl
|
||||
template<const size_t MAX_SIZE>
|
||||
etl::wstring<MAX_SIZE - 1> make_string(const wchar_t (&text) [MAX_SIZE])
|
||||
{
|
||||
return etl::wstring<MAX_SIZE - 1>(text);
|
||||
return etl::wstring<MAX_SIZE - 1>(text, MAX_SIZE - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user