mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
initializers for arrays are stupid
This commit is contained in:
parent
033f041a50
commit
d7425dbb9a
|
@ -147,7 +147,7 @@ namespace sol {
|
||||||
|
|
||||||
if (codepoint <= unicode_detail::last_bmp_value) {
|
if (codepoint <= unicode_detail::last_bmp_value) {
|
||||||
er.code_units_size = 1;
|
er.code_units_size = 1;
|
||||||
er.code_units = std::array<char16_t, 4>{ static_cast<char16_t>(codepoint) };
|
er.code_units = std::array<char16_t, 4>{ { static_cast<char16_t>(codepoint) } };
|
||||||
er.error = error_code::ok;
|
er.error = error_code::ok;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user