From d7425dbb9ae1ef12f1d5eac7e1e0de6399846621 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Tue, 20 Feb 2018 00:57:55 -0500 Subject: [PATCH] initializers for arrays are stupid --- sol/unicode.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol/unicode.hpp b/sol/unicode.hpp index ba8d2e76..3a549dd3 100644 --- a/sol/unicode.hpp +++ b/sol/unicode.hpp @@ -147,7 +147,7 @@ namespace sol { if (codepoint <= unicode_detail::last_bmp_value) { er.code_units_size = 1; - er.code_units = std::array{ static_cast(codepoint) }; + er.code_units = std::array{ { static_cast(codepoint) } }; er.error = error_code::ok; } else {