We’re rewarding the question askers & reputations are being recalculated! Read more.
11 replaced http://softwareengineering.stackexchange.com/ with https://softwareengineering.stackexchange.com/
source | link
10 added 406 characters in body
source | link

Regarding GCC's behavior, it's documented here (emphasis mine):

GCC does not inline any functions when not optimizing unless you specify the ‘always_inline’ attribute for the function, like this:

 /* Prototype.  */
inline void foo (const char) __attribute__((always_inline));

Otherwise, it depends on optimization settings.

Regarding GCC's behavior, it's documented here (emphasis mine):

GCC does not inline any functions when not optimizing unless you specify the ‘always_inline’ attribute for the function, like this:

 /* Prototype.  */
inline void foo (const char) __attribute__((always_inline));

Otherwise, it depends on optimization settings.

9 added 3 characters in body
source | link

The only case you must use the inline keyword is, if you're defining global functions in a multiply included header file. Otherwise youryou are going to violate the One Definition Rule principle.

The only case you must use the inline keyword is, if you're defining global functions in a multiply included header file. Otherwise your going to violate the One Definition Rule principle.

The only case you must use the inline keyword is, if you're defining global functions in a multiply included header file. Otherwise you are going to violate the One Definition Rule principle.

8 added 63 characters in body
source | link
7 added 63 characters in body
source | link
6 added 114 characters in body
source | link
5 added 114 characters in body
source | link
4 added 75 characters in body
source | link
3 added 3 characters in body
source | link
2 added 3 characters in body
source | link
1
source | link