diff --git a/thin-provisioning/human_readable_format.cc b/thin-provisioning/human_readable_format.cc index 0726aa9..3cfc188 100644 --- a/thin-provisioning/human_readable_format.cc +++ b/thin-provisioning/human_readable_format.cc @@ -26,6 +26,14 @@ using namespace thin_provisioning; //---------------------------------------------------------------- namespace { + template + std::ostream &operator << (ostream &out, boost::optional const &maybe) { + if (maybe) + out << *maybe; + + return out; + } + class hr_emitter : public emitter { public: hr_emitter(ostream &out)