aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-17 14:08:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-17 14:09:40 +0200
commita38c7a609c85b54b31e4a50c3da4d39b7a338c1d (patch)
tree7999c2ccef4d257a20ffb3f47746def8e08bb426 /bpkg/manifest
parentdc4ba51c218998a4f3b64d1681e66ddedf10c2f2 (diff)
Add documentation comment
Diffstat (limited to 'bpkg/manifest')
-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 */ {}