[Spice-devel] [PATCH 01/14] Add required <string> header

Christophe de Dinechin christophe at dinechin.org
Wed Feb 14 17:52:09 UTC 2018


From: Christophe de Dinechin <dinechin at redhat.com>

Without this, clang emits among others:

spice-streaming-agent.cpp:355:31: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
    streamfd = open(streamport.c_str(), O_RDWR);
                              ^

Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
 src/spice-streaming-agent.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index f4fee2d..a43a52c 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -22,6 +22,7 @@
 #include <mutex>
 #include <thread>
 #include <vector>
+#include <string>
 #include <functional>
 #include <X11/Xlib.h>
 #include <X11/extensions/Xfixes.h>
-- 
2.13.5 (Apple Git-94)



More information about the Spice-devel mailing list