diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-08 16:09:09 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-08 16:09:09 +0300 |
commit | 17be80bea48c942c9496d079e07bc15a27a5d7a2 (patch) | |
tree | ebdb51316d848d10481a485db00658a370f9ca29 | |
parent | 6ac4f3bcc0bd1306bf1a8dd1bebae1a00081c6b7 (diff) |
Add manifest_parsing() constructor accepting description only
-rw-r--r-- | libbutl/manifest-parser.cxx | 7 | ||||
-rw-r--r-- | libbutl/manifest-parser.mxx | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libbutl/manifest-parser.cxx b/libbutl/manifest-parser.cxx index 9aa35b7..cb2d311 100644 --- a/libbutl/manifest-parser.cxx +++ b/libbutl/manifest-parser.cxx @@ -474,4 +474,11 @@ namespace butl name (n), line (l), column (c), description (d) { } + + manifest_parsing:: + manifest_parsing (const string& d) + : runtime_error (d), + line (0), column (0), description (d) + { + } } diff --git a/libbutl/manifest-parser.mxx b/libbutl/manifest-parser.mxx index 0289d6f..cf44679 100644 --- a/libbutl/manifest-parser.mxx +++ b/libbutl/manifest-parser.mxx @@ -44,6 +44,8 @@ LIBBUTL_MODEXPORT namespace butl std::uint64_t column, const std::string& description); + manifest_parsing (const std::string& description); + std::string name; std::uint64_t line; std::uint64_t column; |