aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-03-08 21:12:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-03-11 12:57:10 +0300
commit8c257da85cde2df8f459f0c7610445971fffb2a8 (patch)
tree5ff670a42257ac6e1374da3ec0055a9ea348d871 /libbuild2/target.cxx
parenta061301ab789d00027f29f389627792dccbe1748 (diff)
Add JSON format support for --structured-result option and info meta operation
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r--libbuild2/target.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index c3c03d7..5fa3c37 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -79,10 +79,10 @@ namespace build2
"group"
};
- ostream&
- operator<< (ostream& os, target_state ts)
+ string
+ to_string (target_state ts)
{
- return os << target_state_[static_cast<uint8_t> (ts)];
+ return target_state_[static_cast<uint8_t> (ts)];
}
// target