initializers for arrays are stupid

This commit is contained in:
ThePhD 2018-02-20 00:57:55 -05:00
parent 033f041a50
commit d7425dbb9a

View File

@ -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 {