summaryrefslogtreecommitdiffstats
path: root/src/generator_lr0.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
commit30c2141182f4eed1d3549603a7aa92c57b35d129 (patch)
tree914f3e0ecd12072da94ce4b4865abb0c08ad1856 /src/generator_lr0.cpp
parent96d622144919a84508cf50eba1b1328ca44d1fed (diff)
downloadsolar-30c2141182f4eed1d3549603a7aa92c57b35d129.tar
solar-30c2141182f4eed1d3549603a7aa92c57b35d129.zip
Replace all make_pair calls with initializer lists
Diffstat (limited to 'src/generator_lr0.cpp')
-rw-r--r--src/generator_lr0.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generator_lr0.cpp b/src/generator_lr0.cpp
index a01e2d7..e2da79f 100644
--- a/src/generator_lr0.cpp
+++ b/src/generator_lr0.cpp
@@ -39,11 +39,11 @@ void generator_lr0_t::add_reduction(size_t from, size_t rule) {
throw conflict_error("reduce/reduce conflict");
for (const symbol_t &sym : get_terminals()) {
- if (get_shifts().count(std::make_pair(from, sym)))
+ if (get_shifts().count({from, sym}))
throw conflict_error("shift/reduce conflict");
}
- reductions.insert(std::make_pair(from, rule));
+ reductions.insert({from, rule});
}
}