Hopefully find balance with gcc/clang for static_string
This commit is contained in:
parent
1499061f86
commit
f5ced799cf
@ -2261,13 +2261,14 @@ namespace chaiscript
|
|||||||
/// Reads a unary prefixed expression from input
|
/// Reads a unary prefixed expression from input
|
||||||
bool Prefix() {
|
bool Prefix() {
|
||||||
const auto prev_stack_top = m_match_stack.size();
|
const auto prev_stack_top = m_match_stack.size();
|
||||||
|
using SS = utility::Static_String;
|
||||||
constexpr const std::array<utility::Static_String, 6> prefix_opers{{
|
constexpr const std::array<utility::Static_String, 6> prefix_opers{{
|
||||||
"++",
|
SS{"++"},
|
||||||
"--",
|
SS{"--"},
|
||||||
"-",
|
SS{"-"},
|
||||||
"+",
|
SS{"+"},
|
||||||
"!",
|
SS{"!"},
|
||||||
"~"
|
SS{"~"}
|
||||||
}};
|
}};
|
||||||
|
|
||||||
for (const auto &oper : prefix_opers)
|
for (const auto &oper : prefix_opers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user