diff --git a/include/boost/regex/v3/regex_split.hpp b/include/boost/regex/v3/regex_split.hpp index 37bd59a6..91babcd0 100644 --- a/include/boost/regex/v3/regex_split.hpp +++ b/include/boost/regex/v3/regex_split.hpp @@ -36,7 +36,7 @@ namespace re_detail{ template const reg_expression& get_default_expression(charT) { - static const charT expression_text[] = { '\\', 's', '+', '\00', }; + static const charT expression_text[4] = { '\\', 's', '+', '\00', }; static const reg_expression e(expression_text); return e; } @@ -149,3 +149,4 @@ inline std::size_t regex_split(OutputIterator out, #endif +