SFML community forums

Help => General => Topic started by: dydya-stepa on February 28, 2012, 02:11:09 pm

Title: should i use inline functions?
Post by: dydya-stepa on February 28, 2012, 02:11:09 pm
should i use inline function or the compiler will take care of it?

i noticed sfml code doesn't use it a lot
Title: should i use inline functions?
Post by: Serapth on February 28, 2012, 03:30:57 pm
As a general rule, leave such decisions to the compiler until you have reason not to.
Title: should i use inline functions?
Post by: Nexus on February 28, 2012, 08:01:53 pm
Serapth is right. I actually never use the inline keyword unless something must be in the header because of linkage reasons.

Generally, writing function definitions in .cpp files has the following advantages: