From 0940a45868781e6daa8f09fc8256ffb007578c13 Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Sun, 22 Aug 2021 16:00:42 +0200 Subject: [PATCH] [#106] Fixed warning with strstream Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- modules/shader_compiler/src/vkcv/shader/GLSLCompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/shader_compiler/src/vkcv/shader/GLSLCompiler.cpp b/modules/shader_compiler/src/vkcv/shader/GLSLCompiler.cpp index c8878513..198c1344 100644 --- a/modules/shader_compiler/src/vkcv/shader/GLSLCompiler.cpp +++ b/modules/shader_compiler/src/vkcv/shader/GLSLCompiler.cpp @@ -2,7 +2,7 @@ #include "vkcv/shader/GLSLCompiler.hpp" #include <fstream> -#include <strstream> +#include <sstream> #include <glslang/SPIRV/GlslangToSpv.h> #include <glslang/StandAlone/DirStackFileIncluder.h> @@ -219,7 +219,7 @@ namespace vkcv::shader { std::string source (shaderSource); if (!m_defines.empty()) { - std::strstream defines; + std::stringstream defines; for (const auto& define : m_defines) { defines << "#define " << define.first << " " << define.second << std::endl; } -- GitLab