From 2bcd53b098967db5ca0ee069c1475fd5ddc8c890 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Mar 2018 17:56:22 +0200 Subject: Add back parsing constructor to package_manifest --- libbpkg/manifest.hxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libbpkg/manifest.hxx') diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index 0e2ee9d..4d21588 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -384,6 +384,7 @@ namespace bpkg public: package_manifest () = default; // VC export. + package_manifest (butl::manifest_parser&, bool ignore_unknown = false); void serialize (butl::manifest_serializer&) const; @@ -391,8 +392,11 @@ namespace bpkg // Create individual package manifest. // - LIBBPKG_EXPORT package_manifest - pkg_package_manifest (butl::manifest_parser&, bool ignore_unknown = false); + inline package_manifest + pkg_package_manifest (butl::manifest_parser& p, bool ignore_unknown = false) + { + return package_manifest (p, ignore_unknown); + } LIBBPKG_EXPORT package_manifest dir_package_manifest (butl::manifest_parser&, bool ignore_unknown = false); -- cgit v1.1