Skip to content

Commit fcead49

Browse files
add explicit std::array<> template args to support C++14 build
Not all the build systems make it easy to specify the C++ standard to use (somehow, Bazel doesn't). C++14 doesn't support deducing the template arguments for std::array. But it seems like there's only one place that needs to be changed to make a C++14 build work ok.
1 parent 1626529 commit fcead49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/unicode_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ TEST(Unicode, TestUTF8)
5959

6060
TEST(Unicode, TestUTF8RejectBad)
6161
{
62-
const auto test_cases = std::array{
62+
const auto test_cases = std::array<const char*, 20>{
6363
"\x80", // Continuation byte without leading byte
6464
"\xa0", // Continuation byte without leading byte
6565
"\xbf", // Continuation byte without leading byte

0 commit comments

Comments
 (0)