aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r--libbuild2/variable.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx
index 071cb5f..b293215 100644
--- a/libbuild2/variable.hxx
+++ b/libbuild2/variable.hxx
@@ -136,8 +136,14 @@ namespace build2
}
#endif
- LIBBUILD2_SYMEXPORT ostream&
- operator<< (ostream&, variable_visibility);
+ LIBBUILD2_SYMEXPORT string
+ to_string (variable_visibility);
+
+ inline ostream&
+ operator<< (ostream& o, variable_visibility v)
+ {
+ return o << to_string (v);
+ }
// variable
//