From 294058e21e33c7bfbb852f8f1a73b1555aa3eace Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 7 Apr 2017 19:17:47 +0300 Subject: Add to_result_status() and to_string(result_status) --- bbot/manifest | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bbot/manifest') diff --git a/bbot/manifest b/bbot/manifest index 2cedbb6..4a5d449 100644 --- a/bbot/manifest +++ b/bbot/manifest @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include @@ -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) -- cgit v1.1