diff --git a/include/chaiscript/language/chaiscript_parser.hpp b/include/chaiscript/language/chaiscript_parser.hpp index c703fb4..913b995 100644 --- a/include/chaiscript/language/chaiscript_parser.hpp +++ b/include/chaiscript/language/chaiscript_parser.hpp @@ -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 prefix_opers{{ - "++", - "--", - "-", - "+", - "!", - "~" + SS{"++"}, + SS{"--"}, + SS{"-"}, + SS{"+"}, + SS{"!"}, + SS{"~"} }}; for (const auto &oper : prefix_opers)