News for hackers. Stuff that matters.
Re:Cyclic dependencies are evil (2013) by cjfd on Sunday January 31, 2021 @07:24AM (#25978293)
One can have Customer in one header file, possibly forward declaring Account. Account in another header file possibly forward declaring Customer. Definitions in the two cpps which can include both header files. When writing such a thing one should ask oneself whether one really needs to do it that way, though. Not that it is too much of a mess but asking such question is always good.

There are no comments on this comment yet.