aboutsummaryrefslogtreecommitdiff
path: root/libbutl/standard-version.mxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-29 22:34:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-30 15:47:34 +0300
commite47ed2a264364cace0519ee16f152fe882f2e6f8 (patch)
treedf48b8f5427ea6031e6f08179b1cf876e44d10af /libbutl/standard-version.mxx
parent2be71ce80a4352a78ae80d0c698b07f0da765f99 (diff)
Add support for $ in standard version constraint
Diffstat (limited to 'libbutl/standard-version.mxx')
-rw-r--r--libbutl/standard-version.mxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbutl/standard-version.mxx b/libbutl/standard-version.mxx
index 6688237..d9e46c7 100644
--- a/libbutl/standard-version.mxx
+++ b/libbutl/standard-version.mxx
@@ -287,6 +287,8 @@ LIBBUTL_MODEXPORT namespace butl
// ('^' | '~') <version>
// ('(' | '[') <version> <version> (')' | ']')
//
+ // The version may be `$` which refers to the dependent package version.
+ //
struct LIBBUTL_SYMEXPORT standard_version_constraint
{
butl::optional<standard_version> min_version;
@@ -299,6 +301,12 @@ LIBBUTL_MODEXPORT namespace butl
explicit
standard_version_constraint (const std::string&);
+ // As above but also completes the special `$` version using the specified
+ // dependent package version.
+ //
+ standard_version_constraint (const std::string&,
+ const standard_version& dependent_version);
+
// Throw std::invalid_argument if the specified version range is invalid.
//
standard_version_constraint (