diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-12 14:29:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-09-12 14:29:45 +0300 |
commit | 3fb35dc4bd8949880e5e6c6cb4825442c7d78b7b (patch) | |
tree | 8127dd4c240fd099675eff82ae4f24fc12bb6806 /libbuild2/script | |
parent | 8604b4b98a5fc587129ab8155c546fc45efe62ff (diff) |
Regenerate options parsing code
Diffstat (limited to 'libbuild2/script')
-rw-r--r-- | libbuild2/script/builtin-options.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libbuild2/script/builtin-options.cxx b/libbuild2/script/builtin-options.cxx index bedbe64..abf325f 100644 --- a/libbuild2/script/builtin-options.cxx +++ b/libbuild2/script/builtin-options.cxx @@ -275,11 +275,11 @@ namespace build2 } }; - template <typename X> - struct parser<std::set<X> > + template <typename X, typename C> + struct parser<std::set<X, C> > { static void - parse (std::set<X>& c, bool& xs, scanner& s) + parse (std::set<X, C>& c, bool& xs, scanner& s) { X x; bool dummy; @@ -289,11 +289,11 @@ namespace build2 } }; - template <typename K, typename V> - struct parser<std::map<K, V> > + template <typename K, typename V, typename C> + struct parser<std::map<K, V, C> > { static void - parse (std::map<K, V>& m, bool& xs, scanner& s) + parse (std::map<K, V, C>& m, bool& xs, scanner& s) { const char* o (s.next ()); |