in a template, how can I get the parameter of a user defined attribute

Chris Bare chris at bareflix.com
Sat Nov 6 22:54:05 UTC 2021


On Saturday, 6 November 2021 at 19:51:09 UTC, Adam Ruppe wrote:
> On Saturday, 6 November 2021 at 19:45:49 UTC, Chris Bare wrote:
>> dbForeignKey!(Position)
>
>
> static if(is(T == dbForeignKey!Arg, Arg)) {
>    // use Arg here
> }

Thanks, that did it.


More information about the Digitalmars-d-learn mailing list