diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-28 10:43:50 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-28 12:08:14 +0300 |
commit | 9175323db2ac6fabb15a5bebb0679c39150437bb (patch) | |
tree | 2eab1a7c953a68251b7940857da2a9e0ecdcffbc /butl/standard-version | |
parent | ae4dea0483145ec6e57a818907d3f007875a6009 (diff) |
Add standard_version::string_project_id()
Diffstat (limited to 'butl/standard-version')
-rw-r--r-- | butl/standard-version | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/butl/standard-version b/butl/standard-version index 71bd5be..c198d3e 100644 --- a/butl/standard-version +++ b/butl/standard-version @@ -51,6 +51,7 @@ namespace butl // std::string string () const; // Package version. std::string string_project () const; // Project version (no epoch/rev). + std::string string_project_id () const; // Project version id (no snapsn). std::string string_version () const; // Version only (no snapshot). std::string string_pre_release () const; // Pre-release part only (a.1). std::string string_snapshot () const; // Snapshot part only (1234.1f23). @@ -186,6 +187,7 @@ namespace butl butl::optional<standard_version> min_version, bool min_open, butl::optional<standard_version> max_version, bool max_open); + explicit standard_version_constraint (const standard_version& v) : standard_version_constraint (v, false, v, false) {} |