summaryrefslogtreecommitdiffstats
path: root/src/parser_state.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-06 21:16:13 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-06 21:16:13 +0200
commit7b8ebfcef1dada98ff36aeb4d16cd3c06517e879 (patch)
tree7fd3ade95dec27f108cff50b96554a898412c44e /src/parser_state.cpp
parent1bb22babd9f978be24c203d919f3c9760df8f3d8 (diff)
downloadsolar-7b8ebfcef1dada98ff36aeb4d16cd3c06517e879.tar
solar-7b8ebfcef1dada98ff36aeb4d16cd3c06517e879.zip
Don't use map::emplace
It doesn't work with GCC 4.7...
Diffstat (limited to 'src/parser_state.cpp')
-rw-r--r--src/parser_state.cpp4
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)));
}
}