Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: