Hopefully find balance with gcc/clang for static_string

This commit is contained in:
Jason Turner 2017-02-02 08:10:47 -08:00
parent 1499061f86
commit f5ced799cf

View File

@ -2261,13 +2261,14 @@ namespace chaiscript
/// Reads a unary prefixed expression from input
bool Prefix() {
const auto prev_stack_top = m_match_stack.size();
using SS = utility::Static_String;
constexpr const std::array<utility::Static_String, 6> prefix_opers{{
"++",
"--",
"-",
"+",
"!",
"~"
SS{"++"},
SS{"--"},
SS{"-"},
SS{"+"},
SS{"!"},
SS{"~"}
}};
for (const auto &oper : prefix_opers)