From 1c7634d0757500a5aa10fbdd70af919c14c3b1c6 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 19 Mar 2021 11:43:29 -0700 Subject: [PATCH] ws: cannot use << with an std::vector --- ws/ws.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ws/ws.cpp b/ws/ws.cpp index ee56eb69..8d8ec5c1 100644 --- a/ws/ws.cpp +++ b/ws/ws.cpp @@ -1893,7 +1893,8 @@ namespace ix spdlog::info("ws_receive: Writing to disk: {}", filenameTmp); std::ofstream out(filenameTmp); - out << content; + std::string contentAsString(content.begin(), content.end()); + out << contentAsString; out.close(); spdlog::info("ws_receive: Renaming {} to {}", filenameTmp, filename);