Item 30: Understand the ins and outs of inlining.(Effective C++)
-
Limit most inlining to small, frequently called functions. This facilitates debugging and binary upgradability, minimizes potential code bloat, and maximizes the chances of greater program speed.
-
Don't declare function templates inline just because they appear in header files.