aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/manifest3
1 files changed, 3 insertions, 0 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 059d174..0bbb0dc 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -30,6 +30,9 @@ namespace bpkg
//
version (): epoch_ (0), revision_ (0) {}
+ // Throw std::invalid_argument if the passed string is not a valid
+ // version representation.
+ //
explicit
version (const std::string& v): version (v.c_str ()) /* Delegate */ {}