diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-14 14:36:44 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 14:53:54 +0300 |
commit | ed437dbd3483baa3d15d1d86d8f057d9112653b1 (patch) | |
tree | cbf3974e8b1774ccccd818442cf042e501190b09 /bpkg/types-parsers.hxx | |
parent | 80ee886ca0bd3e41434621a056125c92f31b1aea (diff) |
Add support for default options files
Diffstat (limited to 'bpkg/types-parsers.hxx')
-rw-r--r-- | bpkg/types-parsers.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bpkg/types-parsers.hxx b/bpkg/types-parsers.hxx index 409f1a9..343714c 100644 --- a/bpkg/types-parsers.hxx +++ b/bpkg/types-parsers.hxx @@ -24,6 +24,9 @@ namespace bpkg { static void parse (path&, bool&, scanner&); + + static void + merge (path& b, const path& a) {b = a;} }; template <> @@ -31,6 +34,9 @@ namespace bpkg { static void parse (dir_path&, bool&, scanner&); + + static void + merge (dir_path& b, const dir_path& a) {b = a;} }; template <> @@ -38,6 +44,9 @@ namespace bpkg { static void parse (auth&, bool&, scanner&); + + static void + merge (auth& b, const auth& a) {b = a;} }; template <> @@ -45,6 +54,9 @@ namespace bpkg { static void parse (repository_type&, bool&, scanner&); + + static void + merge (repository_type& b, const repository_type& a) {b = a;} }; template <const char* const* Q, typename V> @@ -52,6 +64,9 @@ namespace bpkg { static void parse (qualified_option<Q, V>&, bool&, scanner&); + + static void + merge (qualified_option<Q, V>&, const qualified_option<Q, V>&); }; } } |