From 17be80bea48c942c9496d079e07bc15a27a5d7a2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 8 Jan 2019 16:09:09 +0300 Subject: Add manifest_parsing() constructor accepting description only --- libbutl/manifest-parser.cxx | 7 +++++++ libbutl/manifest-parser.mxx | 2 ++ 2 files changed, 9 insertions(+) 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; -- cgit v1.1