I
Ian Collins
I see. In practice, I have found the "inline" keyword to be of littleJames said:I'm refering to the use of the "inline" keyword, of course.
You're right that some modern compilers will inline without it,
across compilation units, and according to the profiler data.
use, the compiler is free to ignore it and in most case one has to jump
through hoops to get the compiler to inline a function that it doesn't
consider appropriate. So I never use it.
I guess that's a point of style, or I don't write what you considerIt does.
As with any rule, it can be violated when there are overriding
reasons to do so. But these are rare in application code, and I
can't remember every having seen a template definition in
application code in production software.
"Application" code. I invariably break into templates before too long.
Just about everything I have ever written contains at least some
components that are generic.
If you exclude templates, do you also exclude the standard library?
Still broken!