summaryrefslogtreecommitdiff
path: root/base/cprintf_formats.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/cprintf_formats.hh')
-rw-r--r--base/cprintf_formats.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/cprintf_formats.hh b/base/cprintf_formats.hh
index 11b0238ed..05a8723a4 100644
--- a/base/cprintf_formats.hh
+++ b/base/cprintf_formats.hh
@@ -29,6 +29,11 @@
#ifndef __CPRINTF_FORMATS_HH__
#define __CPRINTF_FORMATS_HH__
+#include <sstream>
+#include <ostream>
+
+namespace cp {
+
struct Format
{
bool alternate_form;
@@ -343,4 +348,6 @@ inline void
format_string(std::ostream &out, const std::stringstream &data, Format &fmt)
{ _format_string(out, data.str(), fmt); }
+} // namespace cp
+
#endif // __CPRINTF_FORMATS_HH__