C++: Add iostream to the list of included header files

When using debug() we generate calls to `std::cout`.
This commit is contained in:
Simon Hausmann 2023-08-17 13:14:11 +02:00 committed by Simon Hausmann
parent 25fb6ade76
commit 8d0a73c1d4

View file

@ -502,6 +502,7 @@ pub fn generate(doc: &Document) -> impl std::fmt::Display {
file.includes.push("<limits>".into());
file.includes.push("<cstdlib>".into()); // TODO: ideally only include this if needed (by to_float)
file.includes.push("<cmath>".into()); // TODO: ideally only include this if needed (by floor/ceil/round)
file.includes.push("<iostream>".into()); // TODO: ideally only include this if needed (by std::cout from debug())
file.includes.push("<slint.h>".into());
for (path, er) in doc.root_component.embedded_file_resources.borrow().iter() {