UDAs on templates
Max Samukha
maxsamukha at gmail.com
Wed Oct 16 06:24:58 PDT 2013
On Wednesday, 16 October 2013 at 13:14:31 UTC, Max Samukha wrote:
> On Wednesday, 16 October 2013 at 13:12:39 UTC, Max Samukha
> wrote:
>> I'd rather have the same set of attributes on both the
>> template and its instantiations
>
> Impossible, ignore
@(1)
template Foo(T : int) {}
@(2)
template Foo(T : short) {}
__traits(getAttributes, Foo) == ?
The current semantics seems quite reasonable.
More information about the Digitalmars-d-learn
mailing list