aboutsummaryrefslogtreecommitdiff
path: root/libbpkg/manifest.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-05 21:36:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-10 13:48:14 +0300
commitfe33cd2165afb6433af04bbf52bbad524bce6320 (patch)
tree489b1c7ec918ee54941f3eb58a7fcc91539ceb44 /libbpkg/manifest.hxx
parent2fb83c8eba765621106531e834fc1b0c2e3bd6b0 (diff)
Add dependency_constraint(string) ctor
Diffstat (limited to 'libbpkg/manifest.hxx')
-rw-r--r--libbpkg/manifest.hxx5
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);