What does 'inline' mean?

kinke noone at nowhere.com
Wed Jun 10 18:54:26 UTC 2020


On Wednesday, 10 June 2020 at 13:55:40 UTC, Steven Schveighoffer 
wrote:
> On 6/9/20 8:20 PM, Stefan Koch wrote:
>> Yes making the function a function template will do that.
>> And Manu is fully aware of it.
>> 
>> It's a nasty hack.
>> And in certain cases it screws with overload-resolution.
>
> It's not exactly the same. If the compiler thinks an imported 
> module has instantiated it, it will not include it in the 
> object file (unless you use -allinst).

Nope, -allinst doesn't make sure all templates are instantiated 
in each object file. I'll link again to 
https://github.com/ldc-developers/ldc/pull/3422#issuecomment-625945508.


More information about the Digitalmars-d mailing list