diff options
Diffstat (limited to 'src/parser_state.cpp')
-rw-r--r-- | src/parser_state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser_state.cpp b/src/parser_state.cpp index dfbe8a5..5ec8d08 100644 --- a/src/parser_state.cpp +++ b/src/parser_state.cpp @@ -72,7 +72,7 @@ void parser_state_t::add_type_terminal(const char *term) { } void parser_state_t::set_type_nonterminal(const char *type) { - nonterm_types.emplace(current_var, type); + nonterm_types.insert(std::make_pair(current_var, type)); } void parser_state_t::set_type_terminal(const char *type) { @@ -80,7 +80,7 @@ void parser_state_t::set_type_terminal(const char *type) { } void parser_state_t::set_type_terminal_name(const char *name) { - term_types.emplace(symbol_t::make_term(current_var.c_str()), std::make_pair(current_type, name)); + term_types.insert(std::make_pair(symbol_t::make_term(current_var.c_str()), std::make_pair(current_type, name))); } } |