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

Frediano Ziglio fziglio at redhat.com
Thu Feb 15 05:48:24 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>

The specific warning you mentioned is removed by 7/14
but otherwise

Acked-by: Frediano Ziglio <fziglio at redhat.com>

Frediano

> ---
>  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>



More information about the Spice-devel mailing list