summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/cprintf_formats.hh4
-rw-r--r--src/base/cprintftest.cc2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/base/cprintf_formats.hh b/src/base/cprintf_formats.hh
index 4c78fdf50..f55fb955e 100644
--- a/src/base/cprintf_formats.hh
+++ b/src/base/cprintf_formats.hh
@@ -337,10 +337,6 @@ inline void
format_string(std::ostream &out, const T &data, Format &fmt)
{ _format_string(out, data, fmt); }
-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__
diff --git a/src/base/cprintftest.cc b/src/base/cprintftest.cc
index 86694ed83..3a1b97e40 100644
--- a/src/base/cprintftest.cc
+++ b/src/base/cprintftest.cc
@@ -166,7 +166,7 @@ TEST(CPrintf, Types)
std::stringstream foo2;
foo2 << "stringstream test";
- ccprintf(ss, "%s\n", foo2);
+ ccprintf(ss, "%s\n", foo2.str());
EXPECT_EQ(ss.str(), "stringstream test\n");
ss.str("");