I have the struct defined in a separate header, but I wanted to avoid putting dependencies in the header because it feels cleaner and is faster, so I just wanted to include the file in the .cpp when it’s actually used. But since I use it as a parameter in a function declared in my header, I was hoping there was a way to avoid having to include the entire file in my header, if that makes sense?
1 Like