Index: source/graphics/PreprocessorWrapper.cpp =================================================================== --- source/graphics/PreprocessorWrapper.cpp +++ source/graphics/PreprocessorWrapper.cpp @@ -109,7 +109,7 @@ bool ResolveIncludesImpl( std::string_view currentPart, std::unordered_map& includeCache, const CPreprocessorWrapper::IncludeRetrieverCallback& includeCallback, - std::vector& chunks, std::vector& processedParts) + std::deque& chunks, std::vector& processedParts) { static const CStr lineDirective = "#line "; for (size_t lineStart = 0, line = 1; lineStart < currentPart.size(); ++line) @@ -229,7 +229,7 @@ // Stores intermediate blocks of text to avoid additional copying. Should // be constructed before views and destroyed after (currently guaranteed // by stack). - std::vector chunks; + std::deque chunks; // After resolving the following vector should contain a complete list // to concatenate. std::vector processedParts;