Skip to content

Commit 6ca6c46

Browse files
author
jaime-m-p
committed
Using std::vector instead std::array
1 parent c12db90 commit 6ca6c46

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

unicode.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <unordered_set>
1313
#include <utility>
1414
#include <vector>
15-
#include <array>
1615
#include <locale>
1716
#include <codecvt>
1817

@@ -110,8 +109,8 @@ static uint32_t unicode_cpt_from_utf8(const std::string & utf8, size_t & offset)
110109
// return result;
111110
//}
112111

113-
static std::array<codepoint_flags, MAX_CODEPOINTS> unicode_cpt_flags_array() {
114-
std::array<codepoint_flags, MAX_CODEPOINTS> cpt_flags;
112+
static std::vector<codepoint_flags> unicode_cpt_flags_array() {
113+
std::vector<codepoint_flags> cpt_flags(MAX_CODEPOINTS, codepoint_flags::UNDEFINED);
115114

116115
assert (unicode_ranges_flags.front().first == 0);
117116
assert (unicode_ranges_flags.back().first == MAX_CODEPOINTS);

0 commit comments

Comments
 (0)