diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-05 21:36:42 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-10 13:48:14 +0300 |
commit | fe33cd2165afb6433af04bbf52bbad524bce6320 (patch) | |
tree | 489b1c7ec918ee54941f3eb58a7fcc91539ceb44 /libbpkg/manifest.hxx | |
parent | 2fb83c8eba765621106531e834fc1b0c2e3bd6b0 (diff) |
Add dependency_constraint(string) ctor
Diffstat (limited to 'libbpkg/manifest.hxx')
-rw-r--r-- | libbpkg/manifest.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index 81dd5f0..796db7a 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -273,13 +273,16 @@ namespace bpkg // depends // - struct LIBBPKG_EXPORT dependency_constraint + class LIBBPKG_EXPORT dependency_constraint { + public: butl::optional<version> min_version; butl::optional<version> max_version; bool min_open; bool max_open; + dependency_constraint (const std::string&); + dependency_constraint (butl::optional<version> min_version, bool min_open, butl::optional<version> max_version, bool max_open); |