Rule Definition
The normal reason for declaring a function inline is to improve its performance.
Small functions, such as access functions, which return the value of a member of the class should normally be inline.
Correct usage of inline functions may also lead to reduced size of code.
Warning: functions, which invoke other inline functions, often become too complex for the complier to be able to make them inline despite their apparent smallness.
This problem is especially common with constructors and destructors. A constructor always invokes the constructors of its base classes and member data before executing its own code. Always avoid inline constructors and destructors!
Remediation
Declare constructors and destructors as non-inline methods.
Reference
http://www.doc.ic.ac.uk/lab/cplus/c++.rules/chap7.html
Related Technologies
Technical Criterion
Programming Practices - Modularity and OO Encapsulation Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.