diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-07 19:17:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-07 19:17:47 +0300 |
commit | 294058e21e33c7bfbb852f8f1a73b1555aa3eace (patch) | |
tree | b39227b0315ff98e7e52bd210c52dffca712c280 /bbot/manifest | |
parent | ef0e6c709051fc46968d64dcf1c86bd197fe45c2 (diff) |
Add to_result_status() and to_string(result_status)
Diffstat (limited to 'bbot/manifest')
-rw-r--r-- | bbot/manifest | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bbot/manifest b/bbot/manifest index 2cedbb6..4a5d449 100644 --- a/bbot/manifest +++ b/bbot/manifest @@ -7,7 +7,7 @@ #include <string> #include <vector> -#include <iosfwd> +#include <ostream> #include <butl/optional> #include <butl/target-triplet> @@ -146,8 +146,14 @@ namespace bbot abnormal }; - std::ostream& - operator<< (std::ostream&, result_status); + LIBBBOT_EXPORT std::string + to_string (result_status); + + LIBBBOT_EXPORT result_status + to_result_status (const std::string&); // May throw invalid_argument. + + inline std::ostream& + operator<< (std::ostream& os, result_status s) {return os << to_string (s);} inline result_status& operator |= (result_status& l, result_status r) |