June 13, 2015 new pragma(inline) syntax | ||||
|---|---|---|---|---|
| ||||
Are `foo` and `bar` always inlined?
struct S
{
pragma(inline, true):
void foo(T)(T t) {}
void bar(T)(T t) {}
}
| ||||
June 13, 2015 Re: new pragma(inline) syntax | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ilya Yaroshenko | On Saturday, 13 June 2015 at 19:13:20 UTC, Ilya Yaroshenko wrote:
> Are `foo` and `bar` always inlined?
>
> struct S
> {
> pragma(inline, true):
>
> void foo(T)(T t) {}
> void bar(T)(T t) {}
> }
I am confused becuase they are templates.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply