From e47ed2a264364cace0519ee16f152fe882f2e6f8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 29 Jan 2019 22:34:05 +0300 Subject: Add support for $ in standard version constraint --- libbutl/standard-version.mxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbutl/standard-version.mxx') 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 // ('^' | '~') // ('(' | '[') (')' | ']') // + // The version may be `$` which refers to the dependent package version. + // struct LIBBUTL_SYMEXPORT standard_version_constraint { butl::optional 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 ( -- cgit v1.1