aboutsummaryrefslogtreecommitdiff
path: root/butl/standard-version
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-29 17:39:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-29 17:39:33 +0300
commite23a88afad10600ffcafb359b43c31e20791dcf9 (patch)
tree29955f3a6c3483549030b093860c1a73106fbbd3 /butl/standard-version
parent332c4e09b11b010a6ad50468230758d0874dbd60 (diff)
Fix standard version stub to differ from empty version
Diffstat (limited to 'butl/standard-version')
-rw-r--r--butl/standard-version4
1 files changed, 3 insertions, 1 deletions
diff --git a/butl/standard-version b/butl/standard-version
index ae26d71..f609215 100644
--- a/butl/standard-version
+++ b/butl/standard-version
@@ -73,8 +73,10 @@ namespace butl
earliest () const noexcept;
bool
- stub () const noexcept {return version == 0;}
+ stub () const noexcept {return version == std::uint64_t (~0);}
+ // Comparison of empty or stub versions doesn't make sense.
+ //
int
compare (const standard_version& v) const noexcept
{