From ed437dbd3483baa3d15d1d86d8f057d9112653b1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 14 Aug 2019 14:36:44 +0300 Subject: Add support for default options files --- bpkg/types-parsers.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bpkg/types-parsers.hxx') 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 @@ -52,6 +64,9 @@ namespace bpkg { static void parse (qualified_option&, bool&, scanner&); + + static void + merge (qualified_option&, const qualified_option&); }; } } -- cgit v1.1