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

> the C++ compiler needs to see full class definitions to, e.g., know the size of an object and its inheritance relationships, we have to put the main meat of every class definition into a header file!

Without knowing anything about modern C++ and its compilers, this seems fixable.

I'm thinking a header compiler "hint" indicating the size of an object. When compiling the full class, you get an error if the number is wrong.



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

Search: