Should one use forward declarations instead of includes wherever possible?
The forward-declaration method is almost always better. (I can’t think of a situation where including a file where you can use a forward declaration is better, but I’m not gonna say it’s always better just in case). There are no downsides to forward-declaring classes, but I can think of some downsides for including headers unnecessarily: … Read more