summaryrefslogtreecommitdiff
path: root/src/utils/optional_bool.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/optional_bool.hpp')
-rw-r--r--src/utils/optional_bool.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/optional_bool.hpp b/src/utils/optional_bool.hpp
index 59bbbab..867aca2 100644
--- a/src/utils/optional_bool.hpp
+++ b/src/utils/optional_bool.hpp
@@ -20,7 +20,7 @@ struct OptionalBool
this->is_set = false;
}
- std::string to_string()
+ std::string to_string() const
{
if (this->is_set == false)
return "unset";
@@ -33,3 +33,5 @@ struct OptionalBool
bool is_set{false};
bool value{false};
};
+
+std::ostream& operator<<(std::ostream& os, const OptionalBool& o);