microsoft/Terminal

Investigate include order issue with `InputBuffer`, `readData`

Aberta

#4.262 aberto em 16 de jan. de 2020

 (1 comentário) (0 reação) (0 responsável)C++ (9.275 forks)batch import
Area-CodeHealthHelp WantedIssue-TaskPriority-3Product-Conhost

Métricas do repositório

Stars
 (103.173 estrelas)
Métricas de merge de PR
 (Mesclagem média 27d 19h) (24 fundiu PRs em 30d)

Description

Found in #4213.

I had to fwddecl InputBuffer, because I think there's a include order problem with in InputBuffer.hpp and readData.hpp.

readData.hpp uses InputBuffer in a bunch of places, but doesn't include it first

InputBuffer.hpp includes readData.hpp before it defines InputBuffer

So if you try to

#include ".../host/inputBuffer.hpp"

You'll get a compilation error, because it'll include readData, which will assume InputBuffer is defined, which it isn't yet.

Guia do colaborador