c++ - Do I have to mention private methods in the header file of a class? -
for not use header files @ all. classes each in single .cpp file completely. save compile time want make use of header files now. hope visual studio won't compile classes weren't modified debug builds then.
is there way mention public methods , members in header file. in theory enough information compiler. if file, main.cpp includes class header there no need private methods , members, it?
how can use header files without retyping names of private methods , members? reasons me want coding productivity. when want add small helper function class used method, don't want have add it's signature header file.
i don't know of way you're asking, there way give isolation. might want take @ pimpl idiom offers isolation private information. it's little bit of work, can extremely useful, in large projects.
Comments
Post a Comment