0

Mainly curious about coding style - why is it sometimes better to place implementation in header like for example QVector:

http://code.qt.io/cgit/qt/qt.git/tree/src/corelib/tools/qvector.h

the cpp is totaly empty

nayana
  • 3,787
  • 3
  • 20
  • 51
  • 4
    Template implementations have to be in the header file, unless you want to go to quite a bit of extra effort to save a bit of compile time. – user253751 Jan 23 '16 at 10:32
  • thanks, so its about templates.. I barely used them - not coding containers.. – nayana Jan 25 '16 at 13:16

0 Answers0