Script for separating implementation from headers in a .h file

前端 未结 3 624
南旧
南旧 2020-12-17 00:38

Sometimes, when working with small classes, it\'s a pain in the ass to separate the implementation in a .cpp file, so I put all the code in the header file (kids, don\'t do

3条回答
  •  渐次进展
    2020-12-17 01:12

    I'm guilty of this as well - although I've never really thought about automating the split before, as there are usually related project and test files to touch.

    The idea of automating this is interesting, though. The most promising tool I see out there is this one:

    http://os.inf.tu-dresden.de/~hohmuth/prj/preprocess/

提交回复
热议问题