diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-21 17:57:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-21 17:57:03 +0300 |
commit | f03c36bde6a43ad84ae412d46b3e466de82fab6e (patch) | |
tree | bd13cfedb5b6ea5ec9205aaf7b9b59c253720766 /libbutl/standard-version.ixx | |
parent | 2ad811b3fbb5e8101111ea24a58fa7ffce7f06dd (diff) |
Add standard_version::latest_snapshot() predicate
Diffstat (limited to 'libbutl/standard-version.ixx')
-rw-r--r-- | libbutl/standard-version.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbutl/standard-version.ixx b/libbutl/standard-version.ixx index 40ca623..c0833c4 100644 --- a/libbutl/standard-version.ixx +++ b/libbutl/standard-version.ixx @@ -80,6 +80,12 @@ namespace butl return version % 10000 == 1 && !snapshot () && !stub (); } + inline bool standard_version:: + latest_snapshot () const noexcept + { + return snapshot () && snapshot_sn == latest_sn; + } + // Note: in the following constructors we subtract one from AAABBBCCC if // DDDE is not zero (see standard-version.hxx for details). // |