First of all, I would like to state the facts I know about 'inline', so that you don't bother to restate them.
- An inline function is a special kind of function whose definition must be available in every translation unit in which the function is used.
- It is a hint to the compiler (which it is free to ignore) to omit the function call, and expand the body instead of the call.
- The only pro I know of is that (2.) may make the code faster.
- The only con I know if is that (1.) increases coupling which is bad.
Now let's consider templates. If I have a template library, I need to provide the definitions of the function templates in every translation unit, right? Let's forget about the controversial 'export' for a while, since it doesn't really solve the problem anyway. So, I come to a conclusion that there is no reason not to make a template function inline because the only con of inline I know of is there a priori.
Please correct me if I am wrong. Thanks in advance.