aboutsummaryrefslogtreecommitdiff
path: root/bbot/manifest
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/manifest')
-rw-r--r--bbot/manifest12
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)